winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 72ea504435425ce0bc9747fc411217ca7e4bc313
parent 3c3d4e430933fa29d02d49908984fac05baf3e9f
Author: Kaleb Luedtke <jluedtk@jci.com>
Date:   Mon,  1 Apr 2024 10:39:55 -0500

Add Triggers for context labels (#4335)

###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/winget-cli/pull/4335)
Diffstat:
M.github/policies/moderatorTriggers.yml | 40++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+), 0 deletions(-)

diff --git 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: @@ -593,6 +625,12 @@ configuration: - removeLabel: label: Command-Validate - removeLabel: + label: Context-Elevated-User + - removeLabel: + label: Context-User + - removeLabel: + label: Context-System + - removeLabel: label: Dependencies - removeLabel: label: DSC-Resource @@ -625,6 +663,8 @@ configuration: - removeLabel: label: Side-By-Side - removeLabel: + label: Windows-Sandbox + - removeLabel: label: Zipped-Binary onFailure: onSuccess: