Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit c0f647f

Browse files
authored
Merge pull request #222 from microsoftgraph/feature/policies-bot
ci: adds policies bot configuration
2 parents 483b288 + 2476d65 commit c0f647f

File tree

1 file changed

+130
-0
lines changed

1 file changed

+130
-0
lines changed
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
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: 'status:waiting-for-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: 'status:waiting-for-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: Issues
64+
- isAction:
65+
action: Closed
66+
- hasLabel:
67+
label: 'status:waiting-for-author-feedback'
68+
then:
69+
- removeLabel:
70+
label: 'status:waiting-for-author-feedback'
71+
description:
72+
- if:
73+
- payloadType: Issue_Comment
74+
- isAction:
75+
action: Created
76+
- isActivitySender:
77+
issueAuthor: True
78+
- hasLabel:
79+
label: 'status:waiting-for-author-feedback'
80+
then:
81+
- addLabel:
82+
label: 'Needs: Attention :wave:'
83+
- removeLabel:
84+
label: 'status:waiting-for-author-feedback'
85+
description:
86+
- if:
87+
- payloadType: Issues
88+
- not:
89+
isAction:
90+
action: Closed
91+
- hasLabel:
92+
label: no-recent-activity
93+
then:
94+
- removeLabel:
95+
label: no-recent-activity
96+
description:
97+
- if:
98+
- payloadType: Issue_Comment
99+
- hasLabel:
100+
label: no-recent-activity
101+
then:
102+
- removeLabel:
103+
label: no-recent-activity
104+
description:
105+
- if:
106+
- payloadType: Issue_Comment
107+
- activitySenderHasAssociation:
108+
association: Contributor
109+
- bodyContains:
110+
pattern: '?'
111+
isRegex: False
112+
- bodyContains:
113+
pattern: '@'
114+
isRegex: False
115+
then:
116+
- addLabel:
117+
label: 'status:waiting-for-author-feedback'
118+
description:
119+
- if:
120+
- payloadType: Issues
121+
- or:
122+
- isAssignedToSomeone
123+
- isAction:
124+
action: Closed
125+
then:
126+
- removeLabel:
127+
label: ToTriage
128+
description:
129+
onFailure:
130+
onSuccess:

0 commit comments

Comments
 (0)