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

Commit a222d3b

Browse files
authored
Merge pull request #123 from microsoftgraph/feature/policies-bot
ci: adds policies bot configuration
2 parents 3489e49 + b4b312d commit a222d3b

File tree

1 file changed

+34
-70
lines changed

1 file changed

+34
-70
lines changed
Lines changed: 34 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
id:
1+
id:
22
name: GitOps.PullRequestIssueManagement
33
description: GitOps.PullRequestIssueManagement primitive
4-
owner:
4+
owner:
55
resource: repository
66
disabled: false
7-
where:
7+
where:
88
configuration:
99
resourceManagementConfiguration:
1010
scheduledSearches:
11-
- description:
11+
- description:
1212
frequencies:
1313
- hourly:
1414
hour: 1
@@ -18,14 +18,14 @@ configuration:
1818
- hasLabel:
1919
label: 'status:waiting-for-author-feedback'
2020
- hasLabel:
21-
label: 'Status: No Recent Activity'
21+
label: no-recent-activity
2222
- noActivitySince:
2323
days: 3
2424
- isNotLabeledWith:
25-
label: Service Bug
25+
label: service issue
2626
actions:
2727
- closeIssue
28-
- description:
28+
- description:
2929
frequencies:
3030
- hourly:
3131
hour: 1
@@ -37,15 +37,13 @@ configuration:
3737
- noActivitySince:
3838
days: 4
3939
- isNotLabeledWith:
40-
label: 'Status: No Recent Activity'
41-
- isNotLabeledWith:
42-
label: Service Bug
40+
label: no-recent-activity
4341
actions:
4442
- addLabel:
45-
label: 'Status: No Recent Activity'
43+
label: no-recent-activity
4644
- addReply:
4745
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**.
48-
- description:
46+
- description:
4947
frequencies:
5048
- hourly:
5149
hour: 1
@@ -60,28 +58,6 @@ configuration:
6058
- addReply:
6159
reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.
6260
- closeIssue
63-
- description:
64-
frequencies:
65-
- hourly:
66-
hour: 1
67-
filters:
68-
- isOpen
69-
- hasLabel:
70-
label: 'API: Graph'
71-
- noActivitySince:
72-
days: 14
73-
actions:
74-
- addLabel:
75-
label: Service issue
76-
- addReply:
77-
reply: >-
78-
Hello @${issueAuthor}
79-
80-
81-
Thank you for reporting your concern. If you report this issue in the Microsoft Q&A forum, it will get routed to the appropriate team for them to triage.
82-
83-
84-
https://aka.ms/askgraph
8561
eventResponderTasks:
8662
- if:
8763
- payloadType: Issues
@@ -93,17 +69,6 @@ configuration:
9369
- removeLabel:
9470
label: 'status:waiting-for-author-feedback'
9571
description:
96-
- if:
97-
- payloadType: Issues
98-
- and:
99-
- isOpen
100-
- not:
101-
and:
102-
- isAssignedToSomeone
103-
- isLabeled
104-
then:
105-
- addLabel:
106-
label: 'ToTriage'
10772
- if:
10873
- payloadType: Issue_Comment
10974
- isAction:
@@ -114,21 +79,29 @@ configuration:
11479
label: 'status:waiting-for-author-feedback'
11580
then:
11681
- addLabel:
117-
label: "Needs: Attention \U0001F44B"
82+
label: 'Needs: Attention :wave:'
11883
- removeLabel:
11984
label: 'status:waiting-for-author-feedback'
120-
description:
85+
description:
12186
- if:
12287
- payloadType: Issues
12388
- not:
12489
isAction:
12590
action: Closed
12691
- hasLabel:
127-
label: 'Status: No Recent Activity'
92+
label: no-recent-activity
12893
then:
12994
- removeLabel:
130-
label: 'Status: No Recent Activity'
131-
description:
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:
132105
- if:
133106
- payloadType: Issue_Comment
134107
- activitySenderHasAssociation:
@@ -142,25 +115,16 @@ configuration:
142115
then:
143116
- addLabel:
144117
label: 'status:waiting-for-author-feedback'
145-
description:
118+
description:
146119
- if:
147-
- payloadType: Issue_Comment
148-
- hasLabel:
149-
label: 'API: Graph'
120+
- payloadType: Issues
121+
- or:
122+
- isAssignedToSomeone
123+
- isAction:
124+
action: Closed
150125
then:
151-
- addReply:
152-
reply: >-
153-
Hello @${issueAuthor}
154-
155-
156-
Thank you for reporting your concern. If you report this issue in the Microsoft Q&A forum, it will get routed to the appropriate team for them to triage.
157-
158-
https://aka.ms/askgraph
159-
160-
This issue will now be closed. If you encounter any issues in the future, please feel free to open an issue.
161-
- addLabel:
162-
label: Service issue
163-
- closeIssue
164-
description:
165-
onFailure:
166-
onSuccess:
126+
- removeLabel:
127+
label: ToTriage
128+
description:
129+
onFailure:
130+
onSuccess:

0 commit comments

Comments
 (0)