Skip to content

Commit 19935fd

Browse files
Merge pull request ocaml#24286 from kit-ty-kate/unlabel-action
Add a Github Action that removes the "needs reporter action" label when the issue or PR has been commented on
2 parents b96b23b + 98ce196 commit 19935fd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/unlabel.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Remove Label
2+
on:
3+
issue_comment:
4+
types: [created]
5+
jobs:
6+
remove_label:
7+
if: ${{ !contains(fromJSON(vars.MAINTAINERS), github.event.comment.user.login) && contains(github.event.issue.labels.*.name, fromJSON(vars.LABEL_TO_REMOVE)) }}
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions-ecosystem/action-remove-labels@v1
11+
with:
12+
labels: ${{ fromJSON(vars.LABEL_TO_REMOVE) }}

0 commit comments

Comments
 (0)