Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
2 changes: 1 addition & 1 deletion .github/policies/label-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ configuration:
- isAction:
action: Closed
- isActivitySender:
user: ${issueAuthor}
issueAuthor: true

then:
- addLabel:
Expand Down
65 changes: 65 additions & 0 deletions .github/policies/pullRequestManagement-serviceLabels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
id: pullRequestManagement.serviceLabels
name: GitOps.PullRequestServiceLabels
description: Checks the files touched by a pull request and assigns area labels.
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: Add labels to PRs that touch certain files
triggerOnOwnActions: false
if:
- payloadType: Pull_Request
- or:
- isAction:
Opened
- isAction:
Synchronize
- not:
targetsBranch:
branch: live
then:
# Framework WPF
- if:
- filesMatchPattern:
pattern: '(?i).*dotnet-desktop-guide\/framework\/wpf.*'
then:
- addLabel:
label: 'dotnet-framework/svc'
- addLabel:
label: 'wpf/subsvc'

# Framework WinForms
- if:
- filesMatchPattern:
pattern: '(?i).*dotnet-desktop-guide\/framework\/winforms.*'
then:
- addLabel:
label: 'dotnet-framework/svc'
- addLabel:
label: 'winforms/subsvc'

# .NET WPF
- if:
- filesMatchPattern:
pattern: '(?i).*dotnet-desktop-guide\/net\/wpf.*'
then:
- addLabel:
label: 'dotnet-desktop/svc'
- addLabel:
label: 'wpf/subsvc'

# .NET WinForms
- if:
- filesMatchPattern:
pattern: '(?i).*dotnet-desktop-guide\/net\/winforms.*'
then:
- addLabel:
label: 'dotnet-desktop/svc'
- addLabel:
label: 'winforms/subsvc'

onFailure:
onSuccess:
21 changes: 0 additions & 21 deletions .repoman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,6 @@ pull_request:

# Set default sprint for new PRs
- milestone-set: "![sprint]"

- check:
- type: query
value: "PullRequest.Base.Ref != 'live'"
pass:
- files-changed:
- path: "(?i).*dotnet-desktop-guide\/framework\/wpf.*"
run:
- labels-add: ["dotnet-framework/svc", "wpf/subsvc"]

- path: "(?i).*dotnet-desktop-guide\/framework\/winforms.*"
run:
- labels-add: ["dotnet-framework/svc", "winforms/subsvc"]

- path: "(?i).*dotnet-desktop-guide\/net\/wpf.*"
run:
- labels-add: ["dotnet-desktop/svc", "wpf/subsvc"]

- path: "(?i).*dotnet-desktop-guide\/net\/winforms.*"
run:
- labels-add: ["dotnet-desktop/svc", "winforms/subsvc"]

projects_v2_item:

Expand Down
Loading