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

32 lines
1.0 KiB
YAML

id: labelAdded.needsCLA
name: GitOps.PullRequestIssueManagement
description: Handlers when "Needs-CLA" label is added
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: >-
When the label "Needs-CLA" is added to a pull request
* Add the PR specific reply notifying the issue they must sign the CLA
if:
- payloadType: Pull_Request
- labelAdded:
label: Needs-CLA
then:
- addReply:
reply: >-
Hello ${issueAuthor},
This PR cannot be merged until you sign the Contributor License Agreement (CLA). More information on this process can be found on the [Microsoft Open Source](https://opensource.microsoft.com/cla/) website.
###### Template: msftbot/needsCLA
# The policy service should trigger even when the label was added by the policy service
triggerOnOwnActions: true
onFailure:
onSuccess: