Skip to content

Commit

Permalink
Create on-comment-remove-label.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha committed Feb 6, 2024
1 parent 3ffb470 commit f6d9cec
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/on-comment-remove-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Remove `waiting for user response` label
on:
issue_comment:
types: [ created ]

jobs:
remove-label:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Remove `waiting for user response` label if exists
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.issue.number,
name: ["waiting for user response"]
});

0 comments on commit f6d9cec

Please sign in to comment.