Remove bug
labels
#610
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Remove `bug` labels | |
on: | |
workflow_run: | |
workflows: | |
- CI | |
env: | |
GH_REPO: ${{ github.repository }} | |
GH_NO_UPDATE_NOTIFIER: 1 | |
GH_PROMPT_DISABLED: 1 | |
jobs: | |
remove-labels: | |
runs-on: ubuntu-latest | |
if: github.event.workflow_run.event == 'pull_request' | |
strategy: | |
matrix: | |
# Testing comments here to double check that it works. | |
PR: ${{ fromJson(toJson(github.event.workflow_run.pull_requests.*.number)) }} | |
fail-fast: false | |
permissions: | |
pull-requests: write # for `gh pr edit` | |
steps: | |
- name: Remove `bug` label | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PR: ${{ matrix.PR }} | |
run: gh pr edit "$PR" --remove-label bug |