Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/policies/labelManagement.issueUpdated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
id: labelManagement.issueUpdated
name: GitOps.PullRequestIssueManagement
description: >-
Handlers for when an issue is updated and not closed
This primarily includes handlers for comments, reviews, and re-runs
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: Clean email replies on every comment
if:
- or:
- payloadType: Issue_Comment
- payloadType: Pull_Request_Review_Comment
then:
- cleanEmailReply
- description: >-
If an author responds to an issue which needs author feedback
* Remove the Needs-Author-Feedback Label
if:
- or:
- payloadType: Pull_Request_Review
- payloadType: Pull_Request_Review_Comment
- payloadType: Issue_Comment
- isActivitySender:
issueAuthor: True
- hasLabel:
label: Needs-Author-Feedback
- not:
isAction:
action: Synchronize
then:
- removeLabel:
label: Needs-Author-Feedback
- description: Sync labels from issues on all pull request events
if:
- payloadType: Pull_Request
then:
- labelSync:
pattern: Issue-
- labelSync:
pattern: Area-
- inPrLabel:
label: In-PR
onFailure:
onSuccess: