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:
|
2023-05-08 08:07:04 +00:00
|
|
|
name: Remove blocked/need-repro on comment
|
|
|
|
if: ${{ contains(github.event.issue.labels.*.name, 'blocked/need-repro') && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }}
|
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
|
|
|
|
uses: electron/github-app-auth-action@cc6751b3b5e4edc5b9a4ad0a021ac455653b6dc8 # v1.0.0
|
|
|
|
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: |
|
|
|
|
gh issue edit $ISSUE_URL --remove-label 'blocked/need-repro'
|