labelManagement.issueOpened.yml (8688B)
1 id: labelManagement.issueOpened 2 name: GitOps.PullRequestIssueManagement 3 description: Handlers for when an issue is first opened 4 owner: 5 resource: repository 6 disabled: false 7 where: 8 configuration: 9 resourceManagementConfiguration: 10 eventResponderTasks: 11 - description: Add CodeFlow link to new PRs 12 if: 13 - payloadType: Pull_Request 14 - isAction: 15 action: Opened 16 then: 17 - addCodeFlowLink 18 - description: Add Needs-Triage to new issues 19 if: 20 - payloadType: Issues 21 - isAction: 22 action: Opened 23 then: 24 - addLabel: 25 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 281 onFailure: 282 onSuccess: