-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathresourceManagement.yml
101 lines (101 loc) · 2.55 KB
/
resourceManagement.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
id:
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description:
frequencies:
- hourly:
hour: 6
filters:
- isIssue
- isOpen
- hasLabel:
label: 'needs: author feedback'
- hasLabel:
label: 'status: no recent activity'
- noActivitySince:
days: 3
actions:
- closeIssue
- description:
frequencies:
- hourly:
hour: 6
filters:
- isIssue
- isOpen
- hasLabel:
label: 'needs: author feedback'
- noActivitySince:
days: 3
- isNotLabeledWith:
label: 'status: no recent activity'
actions:
- addLabel:
label: 'status: no recent activity'
- addReply:
reply: This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
- description:
frequencies:
- hourly:
hour: 6
filters:
- isIssue
- isOpen
- hasLabel:
label: duplicate
- noActivitySince:
days: 1
actions:
- addReply:
reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.
- closeIssue
eventResponderTasks:
- if:
- payloadType: Issue_Comment
- isAction:
action: Created
- isActivitySender:
issueAuthor: True
- hasLabel:
label: 'needs: author feedback'
- isOpen
then:
- addLabel:
label: 'needs: attention :wave:'
- removeLabel:
label: 'needs: author feedback'
description:
- if:
- payloadType: Issues
- not:
isAction:
action: Closed
- hasLabel:
label: 'status: no recent activity'
then:
- removeLabel:
label: 'status: no recent activity'
description:
- if:
- payloadType: Issue_Comment
- hasLabel:
label: 'status: no recent activity'
then:
- removeLabel:
label: 'status: no recent activity'
description:
- if:
- payloadType: Pull_Request
then:
- inPrLabel:
label: 'Status: In PR'
description:
onFailure:
onSuccess: