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

38 lines
1.1 KiB
YAML

id: labelAdded.changesRequested
name: GitOps.PullRequestIssueManagement
description: Handlers when "Changes-Requested" label is added
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: >-
When the label "Changes-Requested" is added to a pull request
* Add the PR specific reply notifying the issue author
* Assign to the Author
* Label with Needs-Author-Feedback
if:
- payloadType: Pull_Request
- labelAdded:
label: Changes-Requested
then:
- addReply:
reply: >-
Hello ${issueAuthor},
The package manager bot determined changes have been requested to your PR.
###### Template: msftbot/changesRequested
- assignTo:
author: True
- addLabel:
label: Needs-Author-Feedback
# The policy service should trigger even when the label was added by the policy service
triggerOnOwnActions: true
onFailure:
onSuccess: