2023-04-12 23:33:59 +00:00
|
|
|
name: Issue Commented
|
|
|
|
|
|
|
|
on:
|
|
|
|
issue_comment:
|
|
|
|
types:
|
|
|
|
- created
|
|
|
|
|
2023-08-30 15:09:33 +00:00
|
|
|
permissions: {}
|
2023-04-12 23:33:59 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
issue-commented:
|
2024-09-05 08:12:02 +00:00
|
|
|
name: Remove blocked/{need-info,need-repro} on comment
|
|
|
|
if: ${{ (contains(github.event.issue.labels.*.name, 'blocked/need-repro') || contains(github.event.issue.labels.*.name, 'blocked/need-info ❌')) && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) && github.event.comment.user.type != 'Bot' }}
|
2023-04-12 23:33:59 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-08-30 15:09:33 +00:00
|
|
|
- name: Generate GitHub App token
|
2024-02-14 10:13:03 +00:00
|
|
|
uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1
|
2023-08-30 15:09:33 +00:00
|
|
|
id: generate-token
|
|
|
|
with:
|
|
|
|
creds: ${{ secrets.ISSUE_TRIAGE_GH_APP_CREDS }}
|
2023-05-08 08:07:04 +00:00
|
|
|
- name: Remove label
|
2023-04-12 23:33:59 +00:00
|
|
|
env:
|
2023-08-30 15:09:33 +00:00
|
|
|
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
|
2023-04-12 23:33:59 +00:00
|
|
|
ISSUE_URL: ${{ github.event.issue.html_url }}
|
|
|
|
run: |
|
2024-09-05 08:12:02 +00:00
|
|
|
gh issue edit $ISSUE_URL --remove-label 'blocked/need-repro','blocked/need-info ❌'
|