forked from microsoft/winget-pkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automation for label Highest-Version-Remaining - round 3
- Loading branch information
1 parent
cef406f
commit 72a1183
Showing
4 changed files
with
94 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
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. | ||
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: |
80 changes: 40 additions & 40 deletions
80
...es/labelAdded.highestVersionRemaining.yml → ...olicies/labelAdded.lastVersionRemoval.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
id: labelAdded.highestVersionRemaining | ||
name: GitOps.PullRequestIssueManagement | ||
description: Handlers when "Highest-Version-Remaining" label is added | ||
owner: | ||
resource: repository | ||
disabled: false | ||
where: | ||
configuration: | ||
resourceManagementConfiguration: | ||
eventResponderTasks: | ||
- description: >- | ||
When the label "Highest-Version-Remaining" 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-Remaining | ||
then: | ||
- addReply: | ||
reply: >- | ||
Hello @${issueAuthor}, | ||
This PR removes the last version of the package from the repository. | ||
Please check if the package requires an update or is available from another source. | ||
Template: msftbot/highestVersionRemaining | ||
- 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: | ||
id: labelAdded.lastVersionRemoval | ||
name: GitOps.PullRequestIssueManagement | ||
description: Handlers when "Last-Version-Removal" label is added | ||
owner: | ||
resource: repository | ||
disabled: false | ||
where: | ||
configuration: | ||
resourceManagementConfiguration: | ||
eventResponderTasks: | ||
- description: >- | ||
When the label "Last-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: Last-Version-Removal | ||
then: | ||
- addReply: | ||
reply: >- | ||
Hello @${issueAuthor}, | ||
This PR removes the last version of the package from the repository. | ||
Please check if the package requires an update or is available from another source. | ||
Template: msftbot/lastVersionRemoval | ||
- 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters