auto-remove-awaiting-response-label.yml 653 B

1234567891011121314151617181920
  1. name: Auto-remove "awaiting response" label
  2. on:
  3. issue_comment:
  4. types: [created]
  5. jobs:
  6. auto-remove-awaiting-response-label:
  7. name: Run
  8. if: "${{ contains(github.event.issue.labels.*.name, 'status: awaiting response') }}"
  9. runs-on: ubuntu-latest
  10. env:
  11. # Case insensitive. Replace spaces with `%20`.
  12. LABEL_TO_REMOVE: 'status:%20awaiting%20response'
  13. steps:
  14. - name: Run
  15. run: |-
  16. curl -X DELETE \
  17. -H "Accept: application/vnd.github.v3+json" \
  18. -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
  19. "${{ github.event.comment.issue_url }}/labels/$LABEL_TO_REMOVE"