Skip to content

Commit dbc2def

Browse files
committed
[actions] add PR labels clenup on update
1 parent 5d331e5 commit dbc2def

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/pr-labels.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Remove Labels on New Push
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize] # Trigger on PR opened or new commits pushed
6+
7+
jobs:
8+
remove_labels:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write # Grant permission to modify labels
12+
steps:
13+
- name: Remove specific labels
14+
run: gh pr edit ${{ github.event.pull_request.number }} --remove-label "ready,deployed"
15+
env:
16+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)