Skip to content

Commit

Permalink
Add triggers for DSC Resource Labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Trenly committed Nov 5, 2024
1 parent 5f8361e commit 53822b9
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions .github/policies/moderatorTriggers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ configuration:
label: Needs-Attention
- addLabel:
label: Blocking-Issue
# GitDsc
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[Gg]it\.[Dd][Ss][Cc]'
isRegex: True
then:
- addLabel:
label: GitDsc
# Help-Wanted
- if:
- commentContains:
Expand Down Expand Up @@ -106,6 +114,62 @@ configuration:
then:
- addLabel:
label: Issue-Feature
# Microsoft.DotNet.Dsc
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[Mm]icrosoft\.[Dd]otnet\.[Dd][Ss][Cc]'
isRegex: True
then:
- addLabel:
label: Microsoft.DotNet.Dsc
# Microsoft.VSCode.Dsc
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[Mm]icrosoft\.[Vv][Ss][Cc]ode\.[Dd][Ss][Cc]'
isRegex: True
then:
- addLabel:
label: Microsoft.VSCode.Dsc
# Microsoft.Windows.Developer
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[Mm]icrosoft\.[Ww]indows\.[Dd]eveloper'
isRegex: True
then:
- addLabel:
label: Microsoft.Windows.Developer
# Microsoft.Windows.Setting.Accessibility
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[Mm]icrosoft\.[Ww]indows\.[Ss]ettings?\.[Aa]ccessibility'
isRegex: True
then:
- addLabel:
label: Microsoft.Windows.Setting.Accessibility
# Microsoft.Windows.Setting.Language
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[Mm]icrosoft\.[Ww]indows\.[Ss]ettings?\.[Ll]anguage'
isRegex: True
then:
- addLabel:
label: Microsoft.Windows.Setting.Language
# Microsoft.Windows.Setting.System
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[Mm]icrosoft\.[Ww]indows\.[Ss]ettings?\.[Ss]ystem'
isRegex: True
then:
- addLabel:
label: Microsoft.Windows.Setting.System
# Microsoft.Windows.Setting
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[Mm]icrosoft\.[Ww]indows\.[Ss]ettings?'
isRegex: True
then:
- addLabel:
label: Microsoft.Windows.Setting
# Moderator-Approved
# - if:
# - commentContains:
Expand All @@ -115,6 +179,14 @@ configuration:
# - addLabel:
# label: Moderator-Approved
# Needs-Attention
# NpmDsc
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[Nn][Pp][Mm]\.[Dd][Ss][Cc]'
isRegex: True
then:
- addLabel:
label: NpmDsc
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[Nn]eeds[\s-][Aa]ttention'
Expand Down Expand Up @@ -147,6 +219,14 @@ configuration:
then:
- addLabel:
label: Needs-CLA
# PythonPip3Dsc
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[Pp]ython[Pp]ip3?[Dd][Ss][Cc]'
isRegex: True
then:
- addLabel:
label: PythonPip3Dsc
# PSA
- if:
- commentContains:
Expand All @@ -155,6 +235,14 @@ configuration:
then:
- addLabel:
label: Public-Service-Announcement
# YarnDsc
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[Yy]arn\.[Dd][Ss][Cc]'
isRegex: True
then:
- addLabel:
label: YarnDsc
# Unblocked
- if:
- commentContains:
Expand Down

0 comments on commit 53822b9

Please sign in to comment.