Skip to content

Commit

Permalink
[CI] Update issue comment triage workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
hc-github-team-tf-provider-devex committed May 17, 2024
1 parent bef24bb commit 945d839
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/issue-comment-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ jobs:
issue_comment_triage:
runs-on: ubuntu-latest
env:
# issue_comment events are triggered by comments on issues and pull requests. Checking the
# value of github.event.issue.pull_request tells us whether the issue is an issue or is
# actually a pull request, allowing us to dynamically set the gh subcommand:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment-on-issues-only-or-pull-requests-only
COMMAND: ${{ github.event.issue.pull_request && 'pr' || 'issue' }}
GH_TOKEN: ${{ github.token }}
steps:
- name: 'Remove stale and waiting-response on comment'
run: gh issue edit ${{ github.event.issue.html_url }} --remove-label stale,waiting-response
- name: 'Remove waiting-response on comment'
run: gh ${{ env.COMMAND }} edit ${{ github.event.issue.html_url }} --remove-label waiting-response

0 comments on commit 945d839

Please sign in to comment.