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

44 lines
1.5 KiB
YAML

id: labelAdded.validationInstallationError
name: GitOps.PullRequestIssueManagement
description: Handlers when "Validation-Installation-Error" label is added
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: >-
When the label "Validation-Installation-Error" is added to a pull request
* Add a reply notifying the issue author
* Assign to the author
* Label with Needs-Author-Feedback
* Remove Azure-Pipeline-Passed label
* Remove Needs-Attention label
if:
- payloadType: Pull_Request
- labelAdded:
label: Validation-Installation-Error
then:
- addReply:
reply: >-
Hello ${issueAuthor},
The package manager bot determined there was an issue with installing the application correctly. Please check the application installs correctly. Once repaired, please push an update to your pull request.
Template: msftbot/validationError/installation/general
- assignTo:
author: True
- addLabel:
label: Needs-Author-Feedback
- removeLabel:
label: Azure-Pipeline-Passed
- removeLabel:
label: Needs-Attention
# The policy service should trigger even when the label was added by the policy service
triggerOnOwnActions: true
onFailure:
onSuccess: