-
Notifications
You must be signed in to change notification settings - Fork 4.6k
40 lines (36 loc) · 1.13 KB
/
issue-comment-created.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
name: Issue Comment Created Triage
on:
issue_comment:
types: [created]
permissions:
pull-requests: write
issues: write
jobs:
remove-stale:
uses: ./.github/workflows/remove-issue-label.yml
with:
label-name: "stale"
remove-waiting-response-from-issue:
uses: ./.github/workflows/remove-issue-label.yml
if: ${{ !github.event.issue.pull_request }}
with:
label-name: "waiting-response"
remove-waiting-response-from-pr:
uses: ./.github/workflows/remove-issue-label.yml
if: (github.event.issue.pull_request && github.actor == github.event.issue.user.login)
with:
label-name: "waiting-response"
pull_request_comment:
runs-on: ubuntu-latest
if: github.event.issue.pull_request && endsWith(github.event.comment.body, '/wr')
steps:
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["waiting-response"]
})