Skip to content

Commit

Permalink
{CI} Update bot policy (#6734)
Browse files Browse the repository at this point in the history
* Update resourceManagement.yml

* Update resourceManagement.yml

* Update resourceManagement.yml
  • Loading branch information
wangzelin007 authored Sep 8, 2023
1 parent 8ce8770 commit 14b8dba
Showing 1 changed file with 78 additions and 3 deletions.
81 changes: 78 additions & 3 deletions .github/policies/resourceManagement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2525,6 +2525,9 @@ configuration:
- titleContains:
pattern: '\b(aks|Aks|AKS|acs|Acs|ACS|openshift|Openshift|OPENSHIFT)\b'
isRegex: True
- bodyContains:
pattern: az \b(aks|acs|openshift)\b
isRegex: True
then:
- requestReview:
reviewer: zhoxing-ms
Expand All @@ -2533,6 +2536,7 @@ configuration:
- assignTo:
users:
- zhoxing-ms
- yanzhudd
- addLabel:
label: Auto-Assign
- requestReview:
Expand Down Expand Up @@ -4234,7 +4238,7 @@ configuration:
- addLabel:
label: Auto-Assign
- requestReview:
reviewer: wangzelin007
reviewer: yanzhudd
- assignTo:
users:
- zhoxing-ms
Expand Down Expand Up @@ -5070,12 +5074,36 @@ configuration:
label: Auto-Assign
- requestReview:
reviewer: zhoxing-ms
- requestReview:
reviewer: bavneetsingh16
- assignTo:
users:
- zhoxing-ms
- requestReview:
reviewer: wangzelin007
description: '[k8s-extension] Auto assign labels and reviewers based on PR title/description.'
- if:
- payloadType: Pull_Request
- isAction:
action: Opened
- or:
- titleContains:
pattern: k8s-configuration
isRegex: True
- bodyContains:
pattern: k8s-configuration
isRegex: True
then:
- requestReview:
reviewer: yonzhan
- addLabel:
label: Auto-Assign
- requestReview:
reviewer: zhoxing-ms
- requestReview:
reviewer: bavneetsingh16
- assignTo:
users:
- zhoxing-ms
description: '[k8s-configuration] Auto assign labels and reviewers based on PR title/description.'
- if:
- payloadType: Issues
- or:
Expand Down Expand Up @@ -5350,6 +5378,9 @@ configuration:
- isAction:
action: Opened
- or:
- titleContains:
pattern: '[Spring]'
isRegex: False
- titleContains:
pattern: az \b(spring)\b
isRegex: True
Expand Down Expand Up @@ -5537,5 +5568,49 @@ configuration:
users:
- kairu-ms
description: '[Arc Appliance] Auto assign labels and reviewers based on PR title/description.'
- if:
- payloadType: Pull_Request
- isAction:
action: Opened
- or:
- titleContains:
pattern: '\b([Ss]ervice ?[Cc]onnector)\b'
isRegex: True
- bodyContains:
pattern: '\b([Ss]ervice ?[Cc]onnector)\b'
isRegex: True
then:
- requestReview:
reviewer: kairu-ms
- requestReview:
reviewer: jsntcy
- addLabel:
label: Auto-Assign
- assignTo:
users:
- kairu-ms
description: '[Service Connector] Auto assign labels and reviewers based on PR title/description.'
- if:
- payloadType: Pull_Request
- isAction:
action: Opened
- or:
- titleContains:
pattern: '\b([Cc]onnected ?[Vv]mware)\b'
isRegex: True
- bodyContains:
pattern: '\b([Cc]onnected ?[Vv]mware)\b'
isRegex: True
then:
- requestReview:
reviewer: kairu-ms
- requestReview:
reviewer: jsntcy
- addLabel:
label: Auto-Assign
- assignTo:
users:
- kairu-ms
description: '[Connected Vmware] Auto assign labels and reviewers based on PR title/description.'
onFailure:
onSuccess:

0 comments on commit 14b8dba

Please sign in to comment.