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

46 lines
1.6 KiB
YAML

id: labelAdded.validationUninstallError
name: GitOps.PullRequestIssueManagement
description: Handlers when "Validation-Uninstall-Error" label is added
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: >-
When the label "Validation-Uninstall-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-Uninstall-Error
then:
- addReply:
reply: >-
Hello ${issueAuthor},
The package manager bot detected that the application did not uninstall correctly. Please make sure the SystemAppId is correct and the application uninstalls correctly. Once repaired, please push an update to your pull request.
###### Template: msftbot/validationError/uninstall
- assignTo:
author: True
- addLabel:
label: Needs-Author-Feedback
- removeLabel:
label: Azure-Pipeline-Passed
- removeLabel:
label: Needs-Attention
- addLabel:
label: Validation-Guide
# The policy service should trigger even when the label was added by the policy service
triggerOnOwnActions: true
onFailure:
onSuccess: