issue-management-feedback-label.yml 693 B

12345678910111213141516171819202122
  1. name: Issue management - remove labels as needed
  2. on:
  3. issue_comment:
  4. types: [created]
  5. jobs:
  6. issue_comment:
  7. if: >
  8. contains(github.event.issue.labels.*.name, 'needs author feedback') &&
  9. github.event.comment.user.login == github.event.issue.user.login
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
  13. - name: Remove labels
  14. env:
  15. ISSUE_NUMBER: ${{ github.event.issue.number }}
  16. GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  17. run: |
  18. gh issue edit --remove-label "needs author feedback" $ISSUE_NUMBER
  19. gh issue edit --remove-label "stale" $ISSUE_NUMBER