[CI] Update issue comment triage workflow file
This commit is contained in:
parent
b19bd28ab6
commit
9b20f6c960
9
.github/workflows/issue-comment-triage.yml
vendored
9
.github/workflows/issue-comment-triage.yml
vendored
@ -10,7 +10,12 @@ jobs:
|
|||||||
issue_comment_triage:
|
issue_comment_triage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
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 }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
steps:
|
steps:
|
||||||
- name: 'Remove stale and waiting-response on comment'
|
- name: 'Remove waiting-response on comment'
|
||||||
run: gh issue edit ${{ github.event.issue.html_url }} --remove-label stale,waiting-response
|
run: gh ${{ env.COMMAND }} edit ${{ github.event.issue.html_url }} --remove-label waiting-response
|
||||||
|
Loading…
x
Reference in New Issue
Block a user