Skip to content

Commit a893bdd

Browse files
authored
Improve issue forms & add corresponding label triggers (#5661)
## Change PR improves the issues forms by giving the user the option to select the relevant area, as well as the relevant CLI command if applicable. Updated the policy bot triggers to automatically apply certain labels based on the user selection from the issue body. cc @Trenly @denelon ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/winget-cli/pull/5661)
1 parent d0096b3 commit a893bdd

File tree

4 files changed

+318
-2
lines changed

4 files changed

+318
-2
lines changed

.github/ISSUE_TEMPLATE/Bug_Report.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: '🐛 Bug Report'
22
description: Report errors or unexpected behavior.
3+
labels:
4+
- Issue-Bug
5+
- Needs-Triage
36
body:
47
- type: markdown
58
attributes:
@@ -14,6 +17,47 @@ body:
1417
> Alternatively, use the category "Apps > Windows Package Manager" and choose "Share My Feedback" after submission to get the link.
1518
>
1619
> Please use this form and describe your issue, concisely but precisely, with as much detail as possible.
20+
- type: dropdown
21+
attributes:
22+
label: Relevant area(s)
23+
description: What things had an issue? Check all that apply.
24+
multiple: true
25+
options:
26+
- WinGet CLI
27+
- PowerShell Module
28+
- COM API
29+
- DSC Resource
30+
default: 0
31+
validations:
32+
required: true
33+
- type: dropdown
34+
attributes:
35+
label: Relevant command(s)
36+
description: If you selected 'WinGet CLI' above, specify the command(s) that had an issue.
37+
multiple: true
38+
options:
39+
- winget configure
40+
- winget download
41+
- winget dscv3
42+
- winget export
43+
- winget features
44+
- winget font
45+
- winget hash
46+
- winget import
47+
- winget install
48+
- winget list
49+
- winget mcp
50+
- winget pin
51+
- winget repair
52+
- winget search
53+
- winget settings
54+
- winget show
55+
- winget source
56+
- winget uninstall
57+
- winget upgrade
58+
- winget validate
59+
validations:
60+
required: false
1761
- type: textarea
1862
attributes:
1963
label: Brief description of your issue

.github/ISSUE_TEMPLATE/Documentation_Issue.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: '📚 Documentation Issue'
22
description: Report issues in our documentation.
3-
labels: ['Issue-Docs']
3+
labels:
4+
- Issue-Docs
5+
- Needs-Triage
46
body:
57
- type: textarea
68
attributes:

.github/ISSUE_TEMPLATE/Feature_Request.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
name: '🚀 Feature Request / Idea'
22
description: Suggest a new feature or improvement (this does not mean you have to implement it).
3-
labels: ['Issue-Feature']
3+
labels:
4+
- Issue-Feature
5+
- Needs-Triage
46
body:
7+
- type: dropdown
8+
attributes:
9+
label: Relevant area(s)
10+
description: What area does this feature request relate to? Check all that apply.
11+
multiple: true
12+
options:
13+
- WinGet CLI
14+
- PowerShell Module
15+
- COM API
16+
- DSC Resource
17+
default: 0
18+
validations:
19+
required: true
520
- type: textarea
621
attributes:
722
label: Description of the new feature / enhancement

.github/policies/labelManagement.issueOpened.yml

Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,260 @@ configuration:
2323
then:
2424
- addLabel:
2525
label: Needs-Triage
26+
### Area Labels
27+
- description: Add area label for PowerShell Module
28+
if:
29+
- payloadType: Issues
30+
- isAction:
31+
action: Opened
32+
- bodyContains:
33+
pattern: 'Relevant area\(s\)\s*\n.*PowerShell Module'
34+
isRegex: True
35+
then:
36+
- addLabel:
37+
label: PowerShell
38+
- description: Add area label for COM API
39+
if:
40+
- payloadType: Issues
41+
- isAction:
42+
action: Opened
43+
- bodyContains:
44+
pattern: 'Relevant area\(s\)\s*\n.*COM API'
45+
isRegex: True
46+
then:
47+
- addLabel:
48+
label: Area-COM-API
49+
- description: Add area label for WinGet DSC Resources
50+
if:
51+
- payloadType: Issues
52+
- isAction:
53+
action: Opened
54+
- bodyContains:
55+
pattern: 'Relevant area\(s\)\s*\n.*DSC Resource'
56+
isRegex: True
57+
then:
58+
- addLabel:
59+
label: DSC-Resource
60+
### Commands Labels
61+
- description: Add command label for 'winget configure'
62+
if:
63+
- payloadType: Issues
64+
- isAction:
65+
action: Opened
66+
- bodyContains:
67+
pattern: 'Relevant command\(s\)\s*\n.*winget configure'
68+
isRegex: True
69+
then:
70+
- addLabel:
71+
label: Command-Configure
72+
- description: Add command label for 'winget download'
73+
if:
74+
- payloadType: Issues
75+
- isAction:
76+
action: Opened
77+
- bodyContains:
78+
pattern: 'Relevant command\(s\)\s*\n.*winget download'
79+
isRegex: True
80+
then:
81+
- addLabel:
82+
label: Command-Download
83+
- description: Add command label for 'winget dscv3'
84+
if:
85+
- payloadType: Issues
86+
- isAction:
87+
action: Opened
88+
- bodyContains:
89+
pattern: 'Relevant command\(s\)\s*\n.*winget dscv3'
90+
isRegex: True
91+
then:
92+
- addLabel:
93+
label: Command-DSCv3
94+
- description: Add command label for 'winget export'
95+
if:
96+
- payloadType: Issues
97+
- isAction:
98+
action: Opened
99+
- bodyContains:
100+
pattern: 'Relevant command\(s\)\s*\n.*winget export'
101+
isRegex: True
102+
then:
103+
- addLabel:
104+
label: Command-Export
105+
- description: Add command label for 'winget features'
106+
if:
107+
- payloadType: Issues
108+
- isAction:
109+
action: Opened
110+
- bodyContains:
111+
pattern: 'Relevant command\(s\)\s*\n.*winget features'
112+
isRegex: True
113+
then:
114+
- addLabel:
115+
label: Command-Features
116+
- description: Add command label for 'winget font'
117+
if:
118+
- payloadType: Issues
119+
- isAction:
120+
action: Opened
121+
- bodyContains:
122+
pattern: 'Relevant command\(s\)\s*\n.*winget font'
123+
isRegex: True
124+
then:
125+
- addLabel:
126+
label: Command-Font
127+
- description: Add command label for 'winget hash'
128+
if:
129+
- payloadType: Issues
130+
- isAction:
131+
action: Opened
132+
- bodyContains:
133+
pattern: 'Relevant command\(s\)\s*\n.*winget hash'
134+
isRegex: True
135+
then:
136+
- addLabel:
137+
label: Command-Hash
138+
- description: Add command label for 'winget import'
139+
if:
140+
- payloadType: Issues
141+
- isAction:
142+
action: Opened
143+
- bodyContains:
144+
pattern: 'Relevant command\(s\)\s*\n.*winget import'
145+
isRegex: True
146+
then:
147+
- addLabel:
148+
label: Command-Import
149+
- description: Add command label for 'winget install'
150+
if:
151+
- payloadType: Issues
152+
- isAction:
153+
action: Opened
154+
- bodyContains:
155+
pattern: 'Relevant command\(s\)\s*\n.*winget install'
156+
isRegex: True
157+
then:
158+
- addLabel:
159+
label: Command-Install
160+
- description: Add command label for 'winget list'
161+
if:
162+
- payloadType: Issues
163+
- isAction:
164+
action: Opened
165+
- bodyContains:
166+
pattern: 'Relevant command\(s\)\s*\n.*winget list'
167+
isRegex: True
168+
then:
169+
- addLabel:
170+
label: Command-List
171+
- description: Add command label for 'winget mcp'
172+
if:
173+
- payloadType: Issues
174+
- isAction:
175+
action: Opened
176+
- bodyContains:
177+
pattern: 'Relevant command\(s\)\s*\n.*winget mcp'
178+
isRegex: True
179+
then:
180+
- addLabel:
181+
label: Command-MCP
182+
- description: Add command label for 'winget pin'
183+
if:
184+
- payloadType: Issues
185+
- isAction:
186+
action: Opened
187+
- bodyContains:
188+
pattern: 'Relevant command\(s\)\s*\n.*winget pin'
189+
isRegex: True
190+
then:
191+
- addLabel:
192+
label: Command-Pin
193+
- description: Add command label for 'winget repair'
194+
if:
195+
- payloadType: Issues
196+
- isAction:
197+
action: Opened
198+
- bodyContains:
199+
pattern: 'Relevant command\(s\)\s*\n.*winget repair'
200+
isRegex: True
201+
then:
202+
- addLabel:
203+
label: Command-Repair
204+
- description: Add command label for 'winget search'
205+
if:
206+
- payloadType: Issues
207+
- isAction:
208+
action: Opened
209+
- bodyContains:
210+
pattern: 'Relevant command\(s\)\s*\n.*winget search'
211+
isRegex: True
212+
then:
213+
- addLabel:
214+
label: Command-Search
215+
- description: Add command label for 'winget settings'
216+
if:
217+
- payloadType: Issues
218+
- isAction:
219+
action: Opened
220+
- bodyContains:
221+
pattern: 'Relevant command\(s\)\s*\n.*winget settings'
222+
isRegex: True
223+
then:
224+
- addLabel:
225+
label: Command-Settings
226+
- description: Add command label for 'winget show'
227+
if:
228+
- payloadType: Issues
229+
- isAction:
230+
action: Opened
231+
- bodyContains:
232+
pattern: 'Relevant command\(s\)\s*\n.*winget show'
233+
isRegex: True
234+
then:
235+
- addLabel:
236+
label: Command-Show
237+
- description: Add command label for 'winget source'
238+
if:
239+
- payloadType: Issues
240+
- isAction:
241+
action: Opened
242+
- bodyContains:
243+
pattern: 'Relevant command\(s\)\s*\n.*winget source'
244+
isRegex: True
245+
then:
246+
- addLabel:
247+
label: Command-Source
248+
- description: Add command label for 'winget uninstall'
249+
if:
250+
- payloadType: Issues
251+
- isAction:
252+
action: Opened
253+
- bodyContains:
254+
pattern: 'Relevant command\(s\)\s*\n.*winget uninstall'
255+
isRegex: True
256+
then:
257+
- addLabel:
258+
label: Command-Uninstall
259+
- description: Add command label for 'winget upgrade'
260+
if:
261+
- payloadType: Issues
262+
- isAction:
263+
action: Opened
264+
- bodyContains:
265+
pattern: 'Relevant command\(s\)\s*\n.*winget upgrade'
266+
isRegex: True
267+
then:
268+
- addLabel:
269+
label: Command-Upgrade
270+
- description: Add command label for 'winget validate'
271+
if:
272+
- payloadType: Issues
273+
- isAction:
274+
action: Opened
275+
- bodyContains:
276+
pattern: 'Relevant command\(s\)\s*\n.*winget validate'
277+
isRegex: True
278+
then:
279+
- addLabel:
280+
label: Command-Validate
26281
onFailure:
27282
onSuccess:

0 commit comments

Comments
 (0)