Skip to content

Commit 93fdce9

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 1ddc2ca commit 93fdce9

File tree

1 file changed

+120
-0
lines changed

1 file changed

+120
-0
lines changed
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
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: 1
15+
filters:
16+
- isIssue
17+
- isOpen
18+
- hasLabel:
19+
label: 'Needs: Author Feedback'
20+
- hasLabel:
21+
label: no-recent-activity
22+
- noActivitySince:
23+
days: 3
24+
- isNotLabeledWith:
25+
label: service issue
26+
actions:
27+
- closeIssue
28+
- description:
29+
frequencies:
30+
- hourly:
31+
hour: 1
32+
filters:
33+
- isIssue
34+
- isOpen
35+
- hasLabel:
36+
label: 'Needs: Author Feedback'
37+
- noActivitySince:
38+
days: 4
39+
- isNotLabeledWith:
40+
label: no-recent-activity
41+
actions:
42+
- addLabel:
43+
label: no-recent-activity
44+
- addReply:
45+
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**.
46+
- description:
47+
frequencies:
48+
- hourly:
49+
hour: 1
50+
filters:
51+
- isIssue
52+
- isOpen
53+
- hasLabel:
54+
label: duplicate
55+
- noActivitySince:
56+
days: 1
57+
actions:
58+
- addReply:
59+
reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.
60+
- closeIssue
61+
eventResponderTasks:
62+
- if:
63+
- payloadType: Issue_Comment
64+
- isAction:
65+
action: Created
66+
- isActivitySender:
67+
issueAuthor: True
68+
- hasLabel:
69+
label: 'Needs: Author Feedback'
70+
then:
71+
- addLabel:
72+
label: 'Needs: Attention :wave:'
73+
- removeLabel:
74+
label: 'Needs: Author Feedback'
75+
description:
76+
- if:
77+
- payloadType: Issues
78+
- not:
79+
isAction:
80+
action: Closed
81+
- hasLabel:
82+
label: no-recent-activity
83+
then:
84+
- removeLabel:
85+
label: no-recent-activity
86+
description:
87+
- if:
88+
- payloadType: Issue_Comment
89+
- hasLabel:
90+
label: no-recent-activity
91+
then:
92+
- removeLabel:
93+
label: no-recent-activity
94+
description:
95+
- if:
96+
- payloadType: Issue_Comment
97+
- activitySenderHasAssociation:
98+
association: Contributor
99+
- bodyContains:
100+
pattern: '?'
101+
isRegex: False
102+
- bodyContains:
103+
pattern: '@'
104+
isRegex: False
105+
then:
106+
- addLabel:
107+
label: 'Needs: Author Feedback'
108+
description:
109+
- if:
110+
- payloadType: Issues
111+
- or:
112+
- isAssignedToSomeone
113+
- isAction:
114+
action: Closed
115+
then:
116+
- removeLabel:
117+
label: ToTriage
118+
description:
119+
onFailure:
120+
onSuccess:

0 commit comments

Comments
 (0)