issue-commented.yml 651 B

123456789101112131415161718192021222324
  1. name: Issue Commented
  2. on:
  3. issue_comment:
  4. types:
  5. - created
  6. permissions:
  7. contents: read
  8. jobs:
  9. issue-commented:
  10. name: Remove blocked/need-repro on comment
  11. if: ${{ contains(github.event.issue.labels.*.name, 'blocked/need-repro') && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }}
  12. permissions:
  13. issues: write
  14. runs-on: ubuntu-latest
  15. steps:
  16. - name: Remove label
  17. env:
  18. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  19. ISSUE_URL: ${{ github.event.issue.html_url }}
  20. run: |
  21. gh issue edit $ISSUE_URL --remove-label 'blocked/need-repro'