-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Update repoman and policy configs #44036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
538c1dc
new policy configs
adegeo 9fea49d
updated existing issue policy
adegeo 0a200f5
Remove PR area label policy; not fully working
adegeo 60968ae
remove repoman functions covered by policy
adegeo d6b40ff
rename
adegeo b0ee482
Apply suggestions from code review
adegeo 18881e6
move items around
adegeo 1e00013
minor
adegeo fac6829
Migrate PR file processing out of repoman
adegeo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,28 @@ | ||
| id: issueManagement.emptyIssue | ||
| name: GitOps.EmptyIssue | ||
| description: Checks for an issue created via learn that has an empty description from the template. | ||
| owner: | ||
| resource: repository | ||
| disabled: false | ||
| where: | ||
| configuration: | ||
| resourceManagementConfiguration: | ||
| eventResponderTasks: | ||
| - description: Close an issue created with the learn template that has an empty body. | ||
| if: | ||
| - payloadType: Issues | ||
| - bodyContains: | ||
| pattern: '### Description[\n\r]+\[Enter feedback here\][\n\r]+###' | ||
| isRegex: true | ||
| then: | ||
| - addLabel: 'needs-more-info' | ||
| - removeLabel: ':watch: Not Triaged' | ||
| - closeIssue | ||
|
|
||
| triggerOnOwnActions: false | ||
|
|
||
| onFailure: | ||
| onSuccess: | ||
|
|
||
|
|
||
|
|
adegeo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or 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,54 @@ | ||
| id: issueManagement.notTriaged | ||
| name: GitOps.NotTriagedHandler | ||
| description: Ensures the Not Triaged label is added or removed when appropriate | ||
| owner: | ||
| resource: repository | ||
| disabled: false | ||
| where: | ||
| configuration: | ||
| resourceManagementConfiguration: | ||
| eventResponderTasks: | ||
| - description: >- | ||
| Add "not triaged" label when: | ||
| * Issue is opened | ||
| * Issue is reopened | ||
| * 'needs-more-info' label removed | ||
| if: | ||
| - payloadType: Issues | ||
| - or: | ||
|
|
||
| - or: | ||
| - isAction: | ||
| action: Opened | ||
| - isAction: | ||
| action: Reopened | ||
|
|
||
| - labelRemoved: | ||
| label: 'needs-more-info' | ||
| then: | ||
| - addLabel: ':watch: Not Triaged' | ||
| triggerOnOwnActions: false | ||
|
|
||
| - description: >- | ||
| Remove "not triaged" label when: | ||
| * Issue author closes the issue | ||
| * reQUEST label is added | ||
| if: | ||
| - payloadType: Issues | ||
| - hasLabel: | ||
| label: ':watch: Not Triaged' | ||
| - or: | ||
| - and: | ||
| - isAction: | ||
| action: Closed | ||
| - isActivitySender: | ||
| issueAuthor: true | ||
|
|
||
| - labelAdded: | ||
| label: ':world_map: reQUEST' | ||
| then: | ||
| - removeLabel: ':watch: Not Triaged' | ||
| triggerOnOwnActions: false | ||
|
|
||
| onFailure: | ||
| onSuccess: |
This file contains hidden or 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
adegeo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or 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,25 @@ | ||
| id: labelAdded.mapQuest | ||
| name: GitOps.MapQuestHandler | ||
| description: Handles when "mapQUEST" label is added | ||
| owner: | ||
| resource: repository | ||
| disabled: false | ||
| where: | ||
| configuration: | ||
| resourceManagementConfiguration: | ||
| eventResponderTasks: | ||
| - description: >- | ||
| When the label "mapQUEST" is added to an issue | ||
| * Remove label "mapQUEST" | ||
| if: | ||
| - or: | ||
| - payloadType: Issues | ||
| - payloadType: Pull_Request | ||
|
|
||
| - labelAdded: | ||
| label: ':world_map: mapQUEST' | ||
| then: | ||
| - removeLabel: ':world_map: mapQUEST' | ||
| triggerOnOwnActions: true | ||
| onFailure: | ||
| onSuccess: |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.