Skip to content

Commit

Permalink
Merge pull request #24286 from kit-ty-kate/unlabel-action
Browse files Browse the repository at this point in the history
Add a Github Action that removes the "needs reporter action" label when the issue or PR has been commented on
  • Loading branch information
raphael-proust authored Aug 23, 2023
2 parents b96b23b + 98ce196 commit 19935fd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/unlabel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Remove Label
on:
issue_comment:
types: [created]
jobs:
remove_label:
if: ${{ !contains(fromJSON(vars.MAINTAINERS), github.event.comment.user.login) && contains(github.event.issue.labels.*.name, fromJSON(vars.LABEL_TO_REMOVE)) }}
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: ${{ fromJSON(vars.LABEL_TO_REMOVE) }}

0 comments on commit 19935fd

Please sign in to comment.