Files
winget-pkgs/.github/policies/labelAdded.projectFile.yml
T
Kaleb Luedtke 9e9b023667 Split out 99% of the other rules (#109186)
* Standardize formatting

* Separate all rules out into well-labeled files

* Update file descriptions

* Fix Indentation

* Remove Needs-CLA additional logic

* Fix syntax of Not
2023-06-08 08:25:21 -07:00

35 lines
1.1 KiB
YAML

id: labelAdded.projectFile
name: GitOps.PullRequestIssueManagement
description: Handlers when "Project-File" label is added
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: >-
When the label "Project-File" is added to a pull request
* Add the PR specific reply notifying the issue author
* Label with Needs-Attention
if:
- payloadType: Pull_Request
- labelAdded:
label: Project-File
then:
- addReply:
reply: >-
${issueAuthor},
Changes to one or more files in your PR require authorization to modify. This PR has been assigned to our on call staff to evaluate.
Template: msftbot/requiresApproval/MSFT
- addLabel:
label: Needs-Attention # This will automatically assign the ICM Users
# The policy service should trigger even when the label was added by the policy service
triggerOnOwnActions: true
onFailure:
onSuccess: