Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Triggers for context labels #4335

Merged
merged 3 commits into from
Apr 1, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/policies/moderatorTriggers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,30 @@ configuration:
then:
- addLabel:
label: Command-Validate
# Context-Elevated-User
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[cC]ontext[\s-][eE]levated([\s-][uU]ser)?'
isRegex: True
then:
- addLabel:
label: Context-Elevated-User
# Context-User
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[cC]ontext[\s-][uU]ser'
isRegex: True
then:
- addLabel:
label: Context-User
# Context-System
- if:
- commentContains:
pattern: '\[[Pp]olicy\]\s+[cC]ontext[\s-][sS]ystem'
isRegex: True
then:
- addLabel:
label: Context-System
# Dependencies
- if:
- commentContains:
Expand Down Expand Up @@ -592,6 +616,12 @@ configuration:
label: Command-Upgrade
- removeLabel:
label: Command-Validate
- removeLabel:
label: Context-Elevated-User
- removeLabel:
label: Context-User
- removeLabel:
label: Context-System
- removeLabel:
label: Dependencies
- removeLabel:
Expand Down
Loading