Skip to content

Commit f01a36c

Browse files
MattyTheHackerCarrotManMattautomatic-pr-updater[bot]
authored
Add workflow to auto-remove committee review label (#837)
Signed-off-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com> Co-authored-by: Matt Norton <matt@carrotmanmatt.com> Co-authored-by: automatic-pr-updater[bot] <217796550+automatic-pr-updater[bot]@users.noreply.github.com>
1 parent cb33876 commit f01a36c

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Automatically remove committee review label from closed PRs
2+
3+
"on":
4+
pull_request:
5+
types:
6+
- closed
7+
- converted_to_draft
8+
9+
concurrency: # yamllint disable-line rule:key-ordering
10+
cancel-in-progress: true
11+
group: ${{github.workflow}}-${{github.event.pull_request.number}}
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
labeler:
18+
if: github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.type
19+
!= 'Bot'
20+
name: Remove committee review label from closed PR
21+
permissions:
22+
pull-requests: write # Needed to remove the label
23+
24+
runs-on: ubuntu-latest
25+
steps:
26+
- env:
27+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
PR_REPO: ${{ github.repository }}
29+
PR_URL: ${{ github.event.pull_request.html_url }}
30+
name: Remove committee review label from closed PR
31+
run: gh pr edit "$PR_URL" --remove-label "awaiting committee review" --repo "$PR_REPO"

0 commit comments

Comments
 (0)