diff --git a/.github/policies/moderatorTriggers.yml b/.github/policies/moderatorTriggers.yml index 803bb04530..4e7f04e045 100644 --- a/.github/policies/moderatorTriggers.yml +++ b/.github/policies/moderatorTriggers.yml @@ -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: @@ -452,6 +476,14 @@ configuration: then: - addLabel: label: Zipped-Binary + # Zipped-Binary + - if: + - commentContains: + pattern: '\[[Pp]olicy\]\s+([wW]indows[\s-])?[sS]andbox' + isRegex: True + then: + - addLabel: + label: Windows-Sandbox # Unblocked - if: - commentContains: @@ -592,6 +624,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: @@ -624,6 +662,8 @@ configuration: label: Public-Service-Announcement - removeLabel: label: Side-By-Side + - removeLabel: + label: Windows-Sandbox - removeLabel: label: Zipped-Binary onFailure: