ci: remove automated-review label after PR review workflow (#3869)
This commit is contained in:
committed by
GitHub
parent
9ad27778c5
commit
11dba441f9
17
.github/workflows/pr-review.yml
vendored
17
.github/workflows/pr-review.yml
vendored
@@ -95,3 +95,20 @@ jobs:
|
||||
repo: context.repo.repo,
|
||||
body: output
|
||||
})
|
||||
|
||||
- id: remove-label
|
||||
name: Remove automated-review label
|
||||
if: always()
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
try {
|
||||
await github.rest.issues.removeLabel({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
name: 'automated-review'
|
||||
});
|
||||
} catch (error) {
|
||||
console.log('Error removing label', error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user