-
Notifications
You must be signed in to change notification settings - Fork 4.1k
53 lines (50 loc) · 1.75 KB
/
customer_response.yaml
File metadata and controls
53 lines (50 loc) · 1.75 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Customer response management
on:
issue_comment:
types: [created]
schedule:
- cron: '0 9 * * *'
jobs:
remove-label:
if: >
github.event_name == 'issue_comment' &&
!github.event.issue.pull_request &&
github.event.comment.user.login == github.event.issue.user.login &&
contains(toJSON(github.event.issue.labels.*.name), 'blocked: customer-response')
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
await github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
name: 'blocked: customer-response',
});
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['Needs Attention'],
});
stale-check:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
only-labels: 'blocked: customer-response'
stale-issue-label: 'stale'
stale-issue-message: >
This issue has been inactive for 14 days since we requested more
information. It will be closed in 7 days if no further response
is received.
close-issue-message: >
Closing this issue as no response has been received. If this is
still a problem, please reopen with the requested information.
days-before-stale: 14
days-before-close: 7
days-before-pr-stale: -1
days-before-pr-close: -1
remove-stale-when-updated: true