Skip to content

Commit

Permalink
Update policies to account for the deployment label (#821)
Browse files Browse the repository at this point in the history
  • Loading branch information
flanakin authored Jul 16, 2024
1 parent 681c2c4 commit 417bec6
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 10 deletions.
38 changes: 29 additions & 9 deletions .github/policies/issues-00-conventions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,49 @@ configuration:
if:
- payloadType: Issues
then:
# bicep
# aoe
- if:
- or:
- titleContains:
pattern: '^\[Bicep Registry\]'
pattern: /(aoe|optimization engine)/i
isRegex: true
- bodyContains:
pattern: /(aoe|optimization engine)/i
isRegex: true
then:
- addLabel:
label: 'Tool: Optimization Engine'
# bicep / terraform
- if:
- or:
- titleContains:
pattern: '^\[Bicep\]'
pattern: /(bicep|terraform)/i
isRegex: true
- bodyContains:
pattern: /bicep/i
pattern: /(bicep|terraform)/i
isRegex: true
then:
- addLabel:
label: 'Skill: DevOps'
label: 'Skill: Deployment'
- if:
- or:
- titleContains:
pattern: /bicep registry/i
isRegex: true
- bodyContains:
pattern: /bicep registry/i
isRegex: true
then:
- addLabel:
label: 'Tool: Bicep Registry'
# devops
- if:
- or:
- titleContains:
pattern: '^\[DevOps\]'
isRegex: true
- bodyContains:
pattern: /DevOps/i
pattern: /devops/i
isRegex: true
then:
- addLabel:
Expand All @@ -45,10 +65,10 @@ configuration:
- if:
- or:
- titleContains:
pattern: '^\[Hubs\]'
pattern: /hubs/i
isRegex: true
- bodyContains:
pattern: /Hubs/i
pattern: /hubs/i
isRegex: true
then:
- addLabel:
Expand All @@ -69,7 +89,7 @@ configuration:
- if:
- or:
- titleContains:
pattern: '^\[PowerShell\]'
pattern: /PowerShell/i
isRegex: true
- bodyContains:
pattern: /PowerShell/i
Expand Down
9 changes: 8 additions & 1 deletion .github/policies/pulls-02-reviewers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ configuration:
pattern: ^src\/.*\.bicep
then:
- addLabel:
label: 'Skill: ARM'
label: 'Skill: Deployment'
- if:
- filesMatchPattern:
pattern: ^(docs\/_automation|docs-mslearn\/toolkit|src)\/bicep-registry\/.*
Expand Down Expand Up @@ -176,6 +176,13 @@ configuration:
reviewer: helderpinto
- assignTo:
user: helderpinto
# terraform
- if:
- filesMatchPattern:
pattern: ^src\/.*\.tf
then:
- addLabel:
label: 'Skill: Deployment'
# workbooks
- if:
- or:
Expand Down

0 comments on commit 417bec6

Please sign in to comment.