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
29 changes: 29 additions & 0 deletions .github/policies/labelManagement.issueOpened.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
id: labelManagement.issueOpened
name: GitOps.PullRequestIssueManagement
description: Handlers for when an issue is first opened
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: Add Copilot-Instructions label to PRs modifying Copilot instruction files
if:
- payloadType: Pull_Request
- or:
- isAction:
action: Opened
- isAction:
action: Synchronize
- filesMatchPattern:
pattern: ^\.github/(copilot-instructions\.md|instructions/.+\.instructions\.md)$
matchAny: true
- not:
hasLabel:
label: Copilot-Instructions
then:
- addLabel:
label: Copilot-Instructions
onFailure:
onSuccess: