Skip to content

Commit 8645dd5

Browse files
authored
Migrate stale bot workflow to updateStaleIssues.yml policy (microsoft#21660)
1 parent 7b2e367 commit 8645dd5

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Update Stale Issues
2+
description: Update stale issues
3+
resource: repository
4+
configuration:
5+
resourceManagementConfiguration:
6+
scheduledSearches:
7+
- description: Apply stale label to open, unassigned issues that have not been updated in the last 30 days
8+
frequencies:
9+
- daily:
10+
time: 15:00
11+
filters:
12+
- isIssue
13+
- isOpen
14+
- isNotAssigned
15+
- isNotLabeledWith:
16+
label: contributions welcome
17+
- isNotLabeledWith:
18+
label: documentation
19+
- isNotLabeledWith:
20+
label: feature request
21+
- isNotLabeledWith:
22+
label: regression
23+
- noActivitySince:
24+
days: 30
25+
actions:
26+
- addReply:
27+
reply: "Applying stale label due to no activity in 30 days"
28+
- addLabel:
29+
label: stale
30+
- description: Close open, unassigned issues labeled stale that have not been updated in the last 30 days
31+
frequencies:
32+
- daily:
33+
time: 15:00
34+
filters:
35+
- hasLabel:
36+
label: stale
37+
- isIssue
38+
- isOpen
39+
- isNotAssigned
40+
- noActivitySince:
41+
days: 30
42+
actions:
43+
- addReply:
44+
reply: "Closing issue due to no activity in 30 days"
45+
- closeIssue
46+
eventResponderTasks:
47+
- description: Remove stale label if open stale issue is commented on
48+
if:
49+
- payloadType: Issue_Comment
50+
- hasLabel:
51+
label: stale
52+
then:
53+
- removeLabel:
54+
label: stale
55+
- description: Re-open stale issue if closed stale issue is commented on
56+
if:
57+
- payloadType: Issue_Comment
58+
- and:
59+
- not:
60+
isOpen
61+
- hasLabel:
62+
label: stale
63+
then:
64+
- reopenIssue
65+

0 commit comments

Comments
 (0)