-
Notifications
You must be signed in to change notification settings - Fork 566
Expand file tree
/
Copy pathresourceManagement.yml
More file actions
109 lines (109 loc) · 3.32 KB
/
resourceManagement.yml
File metadata and controls
109 lines (109 loc) · 3.32 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
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
102
103
104
105
106
107
108
109
id:
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description:
frequencies:
- weekday:
day: Monday
time: 0:0
- weekday:
day: Tuesday
time: 0:0
- weekday:
day: Wednesday
time: 0:0
- weekday:
day: Thursday
time: 0:0
- weekday:
day: Friday
time: 0:0
filters:
- isIssue
- isOpen
- hasLabel:
label: need-info
- noActivitySince:
days: 7
actions:
- addReply:
reply: Hi ${issueAuthor}. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you.
- closeIssue
- description:
frequencies:
- hourly:
hour: 6
filters:
- isIssue
- isOpen
- hasLabel:
label: possibly-stale
- noActivitySince:
days: 14
actions:
- addReply:
reply: This issue will now be closed since it had been marked "possibly-stale" but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.
- closeIssue
eventResponderTasks:
- if:
- payloadType: Issues
- labelAdded:
label: need-info
then:
- addReply:
reply: Hi ${issueAuthor}. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
description:
- if:
- payloadType: Issue_Comment
- isAction:
action: Created
- isOpen
- hasLabel:
label: need-info
- not:
activitySenderHasPermission:
permission: Admin
- not:
activitySenderHasPermission:
permission: Write
then:
- removeLabel:
label: need-info
- addLabel:
label: need-attention
description:
- if:
- payloadType: Issues
- isAction:
action: Opened
then:
- addLabel:
label: needs-triage
description:
- if:
- payloadType: Issues
- labelAdded:
label: possibly-stale
then:
- addReply:
reply: We suspect this issue is stale and no longer relevant. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.
description:
- if:
- payloadType: Issue_Comment
- hasLabel:
label: possibly-stale
then:
- removeLabel:
label: possibly-stale
- addLabel:
label: need-attention
description:
onFailure:
onSuccess: