Files
winget-pkgs/.github/policies/labelAdded.highestVersionRemoval.yml
T
2025-02-05 09:02:30 -08:00

44 lines
1.3 KiB
YAML

id: labelAdded.highestVersionRemoval
name: GitOps.PullRequestIssueManagement
description: Handlers when "Highest-Version-Removal" label is added
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: >-
When the label "Highest-Version-Removal" is added to a pull request
* Add a reply notifying the issue author
* Assign to the author
* Label with Needs-Author-Feedback
if:
- payloadType: Pull_Request
- labelAdded:
label: Highest-Version-Removal
then:
- addReply:
reply: >-
Hello @${issueAuthor},
This PR removes the highest available version of the package from the repository.
Please provide the reason for removal to help our moderators understand the context.
(This might be in error if the version is switching from semantic to string, or string to semantic.)
Template: msftbot/highestVersionRemoval
- 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: