issue-commented.yml 1017 B

1234567891011121314151617181920212223242526
  1. name: Issue Commented
  2. on:
  3. issue_comment:
  4. types:
  5. - created
  6. permissions: {}
  7. jobs:
  8. issue-commented:
  9. name: Remove blocked/{need-info,need-repro} on comment
  10. if: ${{ (contains(github.event.issue.labels.*.name, 'blocked/need-repro') || contains(github.event.issue.labels.*.name, 'blocked/need-info ❌')) && !contains(fromJSON('["MEMBER", "OWNER", "COLLABORATOR"]'), github.event.comment.author_association) && github.event.comment.user.type != 'Bot' }}
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Generate GitHub App token
  14. uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1
  15. id: generate-token
  16. with:
  17. creds: ${{ secrets.ISSUE_TRIAGE_GH_APP_CREDS }}
  18. - name: Remove label
  19. env:
  20. GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
  21. ISSUE_URL: ${{ github.event.issue.html_url }}
  22. run: |
  23. gh issue edit $ISSUE_URL --remove-label 'blocked/need-repro','blocked/need-info ❌'