Skip to content

Commit fc703a6

Browse files
Merge pull request #44114 from dotnet/main
Merge main into live
2 parents d0478b3 + 713083d commit fc703a6

File tree

4 files changed

+800
-378
lines changed

4 files changed

+800
-378
lines changed

.github/policies/close-issues.yml

+14
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ configuration:
3434
then:
3535
- removeLabel:
3636
label: needs-more-info
37+
triggerOnOwnActions: true
3738

3839
- description: Close issues labeled 'code-of-conduct'
3940
if:
@@ -42,3 +43,16 @@ configuration:
4243
label: code-of-conduct
4344
then:
4445
- closeIssue
46+
47+
- description: Close learn template issues with empty descriptions. (spam)
48+
if:
49+
- payloadType: Issues
50+
- bodyContains:
51+
pattern: '### Description[\n\r]+\[Enter feedback here\][\n\r]+###'
52+
isRegex: true
53+
then:
54+
- addLabel: 'needs-more-info'
55+
- removeLabel: ':watch: Not Triaged'
56+
- addReply:
57+
reply: This issue has been automatically closed due to an empty issue description from the original author. Feel free to reopen it if you have more information that can help us investigate the issue further.
58+
- closeIssue

.github/policies/label-issues.yml

+106-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
id:
2-
name: GitOps.PullRequestIssueManagement
3-
description: GitOps.PullRequestIssueManagement primitive
1+
id: label.issues
2+
name: GitOps.IssueManagement
3+
description: Management logic around issues
44
owner:
55
resource: repository
66
disabled: false
@@ -24,6 +24,109 @@ configuration:
2424
label: okr-quality
2525

2626
eventResponderTasks:
27+
- description: >-
28+
Add "not triaged" label when:
29+
* Issue is opened
30+
* Issue is reopened
31+
* 'needs-more-info' label removed
32+
if:
33+
- payloadType: Issues
34+
- or:
35+
36+
- or:
37+
- isAction:
38+
action: Opened
39+
- isAction:
40+
action: Reopened
41+
42+
- labelRemoved:
43+
label: 'needs-more-info'
44+
then:
45+
- addLabel: ':watch: Not Triaged'
46+
47+
- description: >-
48+
Remove "not triaged" label when:
49+
* Issue author closes the issue
50+
* reQUEST label is added
51+
if:
52+
- payloadType: Issues
53+
- hasLabel:
54+
label: ':watch: Not Triaged'
55+
- or:
56+
- and:
57+
- isAction:
58+
action: Closed
59+
- isActivitySender:
60+
issueAuthor: true
61+
62+
- labelAdded:
63+
label: ':world_map: reQUEST'
64+
then:
65+
- removeLabel: ':watch: Not Triaged'
66+
67+
- description: >-
68+
When the label "mapQUEST" is added to an issue
69+
* Remove label "mapQUEST"
70+
if:
71+
- or:
72+
- payloadType: Issues
73+
- payloadType: Pull_Request
74+
75+
- labelAdded:
76+
label: ':world_map: mapQUEST'
77+
then:
78+
- removeLabel: ':world_map: mapQUEST'
79+
80+
- description: Label dependabot issues
81+
if:
82+
- payloadType: Issues
83+
- isAction:
84+
action: Opened
85+
- or:
86+
- isActivitySender:
87+
user: dependabot
88+
- isActivitySender:
89+
user: dependabot[bot]
90+
then:
91+
- addLabel:
92+
label: dependencies
93+
94+
- description: Remove "won't fix" label when issue is reopened
95+
if:
96+
- payloadType: Issues
97+
- isAction:
98+
action: Reopened
99+
- hasLabel:
100+
label: "won't fix"
101+
102+
then:
103+
- removeLabel:
104+
label: "won't fix"
105+
106+
- description: Remove "in-progress" label when issue closed
107+
if:
108+
- payloadType: Issues
109+
- isAction:
110+
action: Closed
111+
- hasLabel:
112+
label: 'in-progress'
113+
114+
then:
115+
- removeLabel:
116+
label: 'in-progress'
117+
118+
- description: Add "resolved-by-customer" label when issue closed by author.
119+
if:
120+
- payloadType: Issues
121+
- isAction:
122+
action: Closed
123+
- isActivitySender:
124+
issueAuthor: true
125+
126+
then:
127+
- addLabel:
128+
label: resolved-by-customer
129+
27130
- description: Add in-pr label to issues
28131
if:
29132
- payloadType: Pull_Request

0 commit comments

Comments
 (0)