issue-comment-triage.yml 944 B

123456789101112131415161718192021
  1. # DO NOT EDIT - This GitHub Workflow is managed by automation
  2. # https://github.com/hashicorp/terraform-devex-repos
  3. name: Issue Comment Triage
  4. on:
  5. issue_comment:
  6. types: [created]
  7. jobs:
  8. issue_comment_triage:
  9. runs-on: ubuntu-latest
  10. env:
  11. # issue_comment events are triggered by comments on issues and pull requests. Checking the
  12. # value of github.event.issue.pull_request tells us whether the issue is an issue or is
  13. # actually a pull request, allowing us to dynamically set the gh subcommand:
  14. # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment-on-issues-only-or-pull-requests-only
  15. COMMAND: ${{ github.event.issue.pull_request && 'pr' || 'issue' }}
  16. GH_TOKEN: ${{ github.token }}
  17. steps:
  18. - name: 'Remove waiting-response on comment'
  19. run: gh ${{ env.COMMAND }} edit ${{ github.event.issue.html_url }} --remove-label waiting-response