Skip to content

Commit 05b3099

Browse files
authored
{CI} reassign issue owner (Azure#29260)
1 parent 4149e6a commit 05b3099

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

.github/policies/resourceManagement.yml

+33-2
Original file line numberDiff line numberDiff line change
@@ -3219,10 +3219,16 @@ configuration:
32193219
- payloadType: Issues
32203220
- or:
32213221
- titleContains:
3222-
pattern: '[Aa]z \b(account|group|resource|provider|feature|tag|policy|lock|managedapp|resourcemanagement)\b'
3222+
pattern: '[Aa]z \b(group|resource|provider|feature|tag|policy|lock|managedapp|resourcemanagement)\b'
32233223
isRegex: True
32243224
- bodyContains:
3225-
pattern: '[Aa]z \b(account|group|resource|provider|feature|tag|policy|lock|managedapp|resourcemanagement)\b'
3225+
pattern: '[Aa]z \b(group|resource|provider|feature|tag|policy|lock|managedapp|resourcemanagement)\b'
3226+
isRegex: True
3227+
- titleContains:
3228+
pattern: '[Aa]z account (clear|get-access-token|list|list-locations|set|show)\b'
3229+
isRegex: True
3230+
- bodyContains:
3231+
pattern: '[Aa]z account (clear|get-access-token|list|list-locations|set|show)\b'
32263232
isRegex: True
32273233
- or:
32283234
- isAction:
@@ -3240,6 +3246,31 @@ configuration:
32403246
- addLabel:
32413247
label: question
32423248
description: '[arm] auto assign labels and users based on issue description.'
3249+
- if:
3250+
- payloadType: Issues
3251+
- or:
3252+
- titleContains:
3253+
pattern: '[Aa]z account\b(?!\s+(clear|get-access-token|list|list-locations|set|show)\b)'
3254+
isRegex: True
3255+
- bodyContains:
3256+
pattern: '[Aa]z account\b(?!\s+(clear|get-access-token|list|list-locations|set|show)\b)'
3257+
isRegex: True
3258+
- or:
3259+
- isAction:
3260+
action: Opened
3261+
then:
3262+
- addLabel:
3263+
label: Auto-Assign
3264+
- addLabel:
3265+
label: ARM
3266+
- assignTo:
3267+
users:
3268+
- jiasli
3269+
- addLabel:
3270+
label: Azure CLI Team
3271+
- addLabel:
3272+
label: question
3273+
description: '[arm] auto assign labels and users based on issue description. '
32433274
- if:
32443275
- payloadType: Issues
32453276
- or:

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,5 @@ pip.log
117117

118118
az_command_coverage.txt
119119

120+
#cmd coverage
121+
cmd_coverage/*

0 commit comments

Comments
 (0)