-
Notifications
You must be signed in to change notification settings - Fork 3k
60 lines (58 loc) · 1.66 KB
/
new_stale.yml
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
54
55
56
57
58
59
60
id: scheduledSearch.updateStaleIssues
name: Update Stale Issues
description: Update stale issues that have not been active in 30 days
resource: repository
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description: >-
Search for Issue where -
* Issue is open
* Issue is not assigned
* Issue has not had activity in the last 30 days
Then -
* Apply the stale label to Issue
frequencies:
- daily:
time: 15:00
filters:
- isIssue
- isOpen
- isNotAssigned
- isNotLabeledWith:
label: contributions welcome
- isNotLabeledWith:
label: documentation
- isNotLabeledWith:
label: feature request
- isNotLabeledWith:
label: regression
- noActivitySince:
days: 30
actions:
- addReply:
reply: "Applying stale label due to no activity in 30 days"
- addLabel:
label: stale
- description:
Search for Issue where -
* Issue is open
* Issue is labeled stale
* Issue has not had activity in the last 30 days
Then -
* Close the issue
frequencies:
- daily:
time: 15:00
filters:
- hasLabel:
label: stale
- isIssue
- isOpen
- isNotAssigned
- noActivitySince:
days: 30
actions:
- addReply:
reply: "Closing issue due to no activity in 30 days"
- closeIssue