Skip to content

Commit ac78cce

Browse files
Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement
Owners of the FabricBot configuration should have received email notification. The same information contained in the email is published internally at: https://aka.ms/gim/fabricbot. Details on the replacement service and the syntax of the new yaml configuration file is available publicly at: https://microsoft.github.io/GitOps/policies/resource-management.html Please review and merge this PR to complete the process of onboarding to the new service.
1 parent 90ccdc4 commit ac78cce

File tree

1 file changed

+226
-0
lines changed

1 file changed

+226
-0
lines changed
Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
id:
2+
name: GitOps.PullRequestIssueManagement
3+
description: GitOps.PullRequestIssueManagement primitive
4+
owner:
5+
resource: repository
6+
disabled: false
7+
where:
8+
configuration:
9+
resourceManagementConfiguration:
10+
scheduledSearches:
11+
- description:
12+
frequencies:
13+
- hourly:
14+
hour: 6
15+
filters:
16+
- isIssue
17+
- isOpen
18+
- hasLabel:
19+
label: 'Needs: author feedback'
20+
- hasLabel:
21+
label: 'Status: no recent activity'
22+
- noActivitySince:
23+
days: 3
24+
actions:
25+
- closeIssue
26+
- description:
27+
frequencies:
28+
- hourly:
29+
hour: 6
30+
filters:
31+
- isIssue
32+
- isOpen
33+
- hasLabel:
34+
label: 'Needs: author feedback'
35+
- noActivitySince:
36+
days: 4
37+
- isNotLabeledWith:
38+
label: 'Status: no recent activity'
39+
actions:
40+
- addLabel:
41+
label: 'Status: no recent activity'
42+
- addReply:
43+
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**.
44+
- description:
45+
frequencies:
46+
- hourly:
47+
hour: 6
48+
filters:
49+
- isIssue
50+
- isOpen
51+
- hasLabel:
52+
label: duplicate
53+
- noActivitySince:
54+
days: 1
55+
actions:
56+
- addReply:
57+
reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.
58+
- closeIssue
59+
- description:
60+
frequencies:
61+
- hourly:
62+
hour: 6
63+
filters:
64+
- isPullRequest
65+
- isOpen
66+
- hasLabel:
67+
label: 'Needs: author feedback'
68+
- hasLabel:
69+
label: 'Status: no recent activity'
70+
- noActivitySince:
71+
days: 7
72+
actions:
73+
- closeIssue
74+
- description:
75+
frequencies:
76+
- hourly:
77+
hour: 6
78+
filters:
79+
- isPullRequest
80+
- isOpen
81+
- hasLabel:
82+
label: 'Needs: author feedback'
83+
- noActivitySince:
84+
days: 7
85+
- isNotLabeledWith:
86+
label: 'Status: no recent activity'
87+
actions:
88+
- addLabel:
89+
label: 'Status: no recent activity'
90+
- addReply:
91+
reply: This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**.
92+
eventResponderTasks:
93+
- if:
94+
- payloadType: Issue_Comment
95+
- isAction:
96+
action: Created
97+
- isActivitySender:
98+
issueAuthor: True
99+
- hasLabel:
100+
label: 'Needs: author feedback'
101+
- isOpen
102+
then:
103+
- addLabel:
104+
label: 'Needs: attention :wave:'
105+
- removeLabel:
106+
label: 'Needs: author feedback'
107+
description:
108+
- if:
109+
- payloadType: Issues
110+
- not:
111+
isAction:
112+
action: Closed
113+
- hasLabel:
114+
label: 'Status: no recent activity'
115+
then:
116+
- removeLabel:
117+
label: 'Status: no recent activity'
118+
description:
119+
- if:
120+
- payloadType: Issue_Comment
121+
- hasLabel:
122+
label: 'Status: no recent activity'
123+
then:
124+
- removeLabel:
125+
label: 'Status: no recent activity'
126+
description:
127+
- if:
128+
- payloadType: Pull_Request
129+
then:
130+
- inPrLabel:
131+
label: 'Status: In PR'
132+
description:
133+
- if:
134+
- payloadType: Pull_Request
135+
- isAction:
136+
action: Opened
137+
then:
138+
- addCodeFlowLink
139+
description:
140+
- if:
141+
- payloadType: Pull_Request_Review
142+
- isAction:
143+
action: Submitted
144+
- isReviewState:
145+
reviewState: Changes_requested
146+
then:
147+
- addLabel:
148+
label: 'Needs: author feedback'
149+
description:
150+
- if:
151+
- payloadType: Pull_Request
152+
- isActivitySender:
153+
issueAuthor: True
154+
- not:
155+
isAction:
156+
action: Closed
157+
- hasLabel:
158+
label: 'Needs: author feedback'
159+
then:
160+
- removeLabel:
161+
label: 'Needs: author feedback'
162+
description:
163+
- if:
164+
- payloadType: Issue_Comment
165+
- isActivitySender:
166+
issueAuthor: True
167+
- hasLabel:
168+
label: 'Needs: author feedback'
169+
then:
170+
- removeLabel:
171+
label: 'Needs: author feedback'
172+
description:
173+
- if:
174+
- payloadType: Pull_Request_Review
175+
- isActivitySender:
176+
issueAuthor: True
177+
- hasLabel:
178+
label: 'Needs: author feedback'
179+
then:
180+
- removeLabel:
181+
label: 'Needs: author feedback'
182+
description:
183+
- if:
184+
- payloadType: Pull_Request
185+
- not:
186+
isAction:
187+
action: Closed
188+
- hasLabel:
189+
label: 'Status: no recent activity'
190+
then:
191+
- removeLabel:
192+
label: 'Status: no recent activity'
193+
description:
194+
- if:
195+
- payloadType: Issue_Comment
196+
- hasLabel:
197+
label: 'Status: no recent activity'
198+
then:
199+
- removeLabel:
200+
label: 'Status: no recent activity'
201+
description:
202+
- if:
203+
- payloadType: Pull_Request_Review
204+
- hasLabel:
205+
label: 'Status: no recent activity'
206+
then:
207+
- removeLabel:
208+
label: 'Status: no recent activity'
209+
description:
210+
- if:
211+
- payloadType: Pull_Request
212+
- hasLabel:
213+
label: auto merge
214+
then:
215+
- enableAutoMerge:
216+
mergeMethod: Merge
217+
description:
218+
- if:
219+
- payloadType: Pull_Request
220+
- labelRemoved:
221+
label: auto merge
222+
then:
223+
- disableAutoMerge
224+
description:
225+
onFailure:
226+
onSuccess:

0 commit comments

Comments
 (0)