46 lines
1.9 KiB
YAML
46 lines
1.9 KiB
YAML
id: labelAdded.binaryValidationError
|
|
name: GitOps.PullRequestIssueManagement
|
|
description: Handlers when "Binary-Validation-Error" label is added
|
|
owner:
|
|
resource: repository
|
|
disabled: false
|
|
where:
|
|
configuration:
|
|
resourceManagementConfiguration:
|
|
eventResponderTasks:
|
|
- description: >-
|
|
When the label "Binary-Validation-Error" is added to a pull request
|
|
* Add the PR specific reply notifying the issue author
|
|
* Assign to the Author
|
|
* Label with Needs-Author-Feedback
|
|
* Remove the Needs-Attention Label
|
|
if:
|
|
- payloadType: Pull_Request
|
|
- labelAdded:
|
|
label: Binary-Validation-Error
|
|
then:
|
|
- addReply:
|
|
reply: >-
|
|
Hello ${issueAuthor},
|
|
|
|
|
|
The package manager bot determined there was an issue with one of the installers listed in the url field, and cannot continue.
|
|
|
|
|
|
The application included in this pull request failed to pass the [Installers Scan](https://docs.microsoft.com/en-us/windows/package-manager/package/winget-validation) test. This test is designed to ensure that the application installs on all environments without warnings. For more details on this error, see [Binary validation errors](https://docs.microsoft.com/en-us/windows/package-manager/package/binary-validation-errors). Please check to ensure the installer URL is correct and update the URL and the Hash if a change is made.
|
|
|
|
|
|
###### Template: msftbot/validationError/installers/binaryValidation
|
|
- assignTo:
|
|
author: True
|
|
- addLabel:
|
|
label: Needs-Author-Feedback
|
|
- addLabel:
|
|
label: Validation-Guide
|
|
- removeLabel:
|
|
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:
|