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 Information on what to test before Submitting Package (microsoft#…
…112071) * Add Information on what to test before Submitting Package * Update GitOps id and description * Remove issue search * Fix mising sentence * Fix message spacing
- Loading branch information
Showing
7 changed files
with
111 additions
and
1 deletion.
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,48 @@ | ||
id: labelAdded.manifestContentIncomplete | ||
name: GitOps.PullRequestIssueManagement | ||
description: Handlers when "Manifest-Content-Incomplete" label is added | ||
owner: | ||
resource: repository | ||
disabled: false | ||
where: | ||
configuration: | ||
resourceManagementConfiguration: | ||
eventResponderTasks: | ||
- description: >- | ||
When the label "Manifest-Content-Incomplete" 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: "Manifest-Content-Incomplete" | ||
then: | ||
- addReply: | ||
reply: >- | ||
@${issueAuthor}, | ||
Your manifest appears to contain one or more issues with the content. Please ensure it meets the contribution guidelines. | ||
* Manifests should be tested to ensure applications can install unattended | ||
* Manifests should be tested to ensure application version matches the Package Version, or that AppsAndFeaturesEntries are included if necessary | ||
* Manifests should be tested to ensure application publisher matches the defaultLocale Publisher, or that AppsAndFeaturesEntries are included if necessary | ||
* Manifests should be tested to ensure application name matches the defaultLocale PackageName, or that AppsAndFeaturesEntries are included if necessary | ||
Please review your manifest and make the appropriate changes. This PR will be automatically closed if no changes are made. | ||
Template: msftbot/validationError/manifest/contentIncomplete | ||
- assignTo: | ||
author: True | ||
- addLabel: | ||
label: Needs-Author-Feedback | ||
- removeLabel: | ||
label: Needs-Attention | ||
# 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
32 changes: 32 additions & 0 deletions
32
.github/policies/scheduledSearch.closeManifestContentIncomplete.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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
id: scheduledSearch.closeManifestContentIncomplete | ||
name: GitOps.PullRequestIssueManagement | ||
description: Close stale pull requests marked with "Manifest-Content-Incomplete" | ||
owner: | ||
resource: repository | ||
disabled: false | ||
where: | ||
configuration: | ||
resourceManagementConfiguration: | ||
scheduledSearches: | ||
- description: >- | ||
Search for PR where - | ||
* Pull Request is Open | ||
* Pull request has the label Manifest-Content-Incomplete | ||
* Has not had activity in the last 5 days | ||
Then - | ||
* Close the PR | ||
frequencies: | ||
- hourly: | ||
hour: 6 | ||
filters: | ||
- isPullRequest | ||
- isOpen | ||
- hasLabel: | ||
label: Manifest-Content-Incomplete | ||
- noActivitySince: | ||
days: 5 | ||
actions: | ||
- closeIssue | ||
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
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