Skip to content

Commit

Permalink
Automate removing the awaiting-op-response label (microsoft#3888)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgerrits authored Oct 22, 2024
1 parent 8a4930a commit bfa0b3b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/issue-user-responded.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Remove awaiting-op-response label if op responded
on:
issue_comment:
types: [created]
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: gh issue edit "$NUMBER" --remove-label "$LABELS"
if: ${{ github.event.comment.user.login == github.event.issue.user.login && contains(github.event.issue.labels.*.name, 'awaiting-op-response') }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: awaiting-op-response

0 comments on commit bfa0b3b

Please sign in to comment.