Skip to content

Commit ff106cb

Browse files
authored
patch file formatting and add automatic triaging (#455)
1 parent b6ed2e9 commit ff106cb

File tree

1 file changed

+97
-86
lines changed

1 file changed

+97
-86
lines changed
Lines changed: 97 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,105 @@
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:
12-
frequencies:
13-
- hourly:
14-
hour: 6
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-
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: no-recent-activity
39-
actions:
40-
- addLabel:
41-
label: 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
11+
- description:
12+
frequencies:
13+
- hourly:
14+
hour: 3
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+
actions:
25+
- closeIssue
26+
- description:
27+
frequencies:
28+
- hourly:
29+
hour: 3
30+
filters:
31+
- isIssue
32+
- isOpen
33+
- hasLabel:
34+
label: "Needs: Author Feedback"
35+
- noActivitySince:
36+
days: 4
37+
- isNotLabeledWith:
38+
label: no-recent-activity
39+
actions:
40+
- addLabel:
41+
label: 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: 3
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
5959
eventResponderTasks:
60-
- if:
61-
- payloadType: Issue_Comment
62-
- isAction:
63-
action: Created
64-
- isActivitySender:
65-
issueAuthor: True
66-
- hasLabel:
67-
label: 'Needs: Author Feedback'
68-
then:
69-
- addLabel:
70-
label: 'Needs: Attention :wave:'
71-
- removeLabel:
72-
label: 'Needs: Author Feedback'
73-
description:
74-
- if:
75-
- payloadType: Issues
76-
- not:
77-
isAction:
78-
action: Closed
79-
- hasLabel:
80-
label: no-recent-activity
81-
then:
82-
- removeLabel:
83-
label: no-recent-activity
84-
description:
85-
- if:
86-
- payloadType: Issue_Comment
87-
- hasLabel:
88-
label: no-recent-activity
89-
then:
90-
- removeLabel:
91-
label: no-recent-activity
92-
description:
93-
onFailure:
94-
onSuccess:
60+
- if:
61+
- payloadType: Issues
62+
- and:
63+
- isOpen
64+
- not:
65+
and:
66+
- isAssignedToSomeone
67+
- isLabeled
68+
then:
69+
- addLabel:
70+
label: "Needs: Triage :mag:"
71+
- if:
72+
- payloadType: Issue_Comment
73+
- isAction:
74+
action: Created
75+
- isActivitySender:
76+
issueAuthor: True
77+
- hasLabel:
78+
label: "Needs: Author Feedback"
79+
then:
80+
- addLabel:
81+
label: "Needs: Attention :wave:"
82+
- removeLabel:
83+
label: "Needs: Author Feedback"
84+
description:
85+
- if:
86+
- payloadType: Issues
87+
- not:
88+
isAction:
89+
action: Closed
90+
- hasLabel:
91+
label: no-recent-activity
92+
then:
93+
- removeLabel:
94+
label: no-recent-activity
95+
description:
96+
- if:
97+
- payloadType: Issue_Comment
98+
- hasLabel:
99+
label: no-recent-activity
100+
then:
101+
- removeLabel:
102+
label: no-recent-activity
103+
description:
104+
onFailure:
105+
onSuccess:

0 commit comments

Comments
 (0)