Files
winget-pkgs/.github/policies/labelAdded.projectFile.yml
T

32 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: >-
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: