Automate removing the awaiting-op-response label (#3888)

This commit is contained in:
Jack Gerrits 2024-10-22 15:32:03 -04:00 committed by GitHub
parent 8a4930a9be
commit bfa0b3b94f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 17 additions and 0 deletions

View File

@ -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