Skip to content

Commit 43603eb

Browse files
authored
Restore and remove dupe pattern:
1 parent 9d7c6de commit 43603eb

File tree

1 file changed

+25
-38
lines changed

1 file changed

+25
-38
lines changed
Lines changed: 25 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
id: pullRequestManagement.serviceLabels
2-
name: GitOps.PullRequestServiceLabels
3-
description: Checks the files touched by a pull request and assigns area labels.
1+
id: pullRequestManagement.labelFiles
2+
name: GitOps.PullRequestLabelFiles
3+
description: Checks the files touched by a pull request and assigns a reviewer
44
owner:
55
resource: repository
66
disabled: false
77
where:
88
configuration:
99
resourceManagementConfiguration:
1010
eventResponderTasks:
11-
- description: Add labels to PRs that touch certain files
11+
- description: Modify PRs that touch certain files
1212
triggerOnOwnActions: false
1313
if:
1414
- payloadType: Pull_Request
@@ -21,49 +21,36 @@ configuration:
2121
targetsBranch:
2222
branch: live
2323
then:
24-
# Framework WPF
2524
- if:
26-
- filesMatchPattern:
27-
pattern: '(?i).*dotnet-desktop-guide\/framework\/wpf.*'
28-
matchAny: true
25+
- filesMatchPattern:
26+
matchAny: true
27+
pattern: (?i).*/blazor/hybrid/.*
2928
then:
30-
- addLabel:
31-
label: 'dotnet-framework/svc'
32-
- addLabel:
33-
label: 'wpf/subsvc'
34-
35-
# Framework WinForms
29+
- requestReviewer:
30+
reviewer: guardrex
31+
- addLabel:
32+
label: blazor-hybrid/subsvc
3633
- if:
34+
- or:
3735
- filesMatchPattern:
38-
pattern: '(?i).*dotnet-desktop-guide\/framework\/winforms.*'
3936
matchAny: true
40-
then:
41-
- addLabel:
42-
label: 'dotnet-framework/svc'
43-
- addLabel:
44-
label: 'winforms/subsvc'
45-
46-
# .NET WPF
47-
- if:
37+
pattern: (?i).*/blazor/.*
4838
- filesMatchPattern:
49-
pattern: '(?i).*dotnet-desktop-guide\/net\/wpf.*'
5039
matchAny: true
51-
then:
52-
- addLabel:
53-
label: 'dotnet-desktop/svc'
54-
- addLabel:
55-
label: 'wpf/subsvc'
56-
57-
# .NET WinForms
58-
- if:
40+
pattern: (?i).*/client-side/dotnet-interop/index.md
41+
- filesMatchPattern:
42+
matchAny: true
43+
pattern: (?i).*/client-side/dotnet-interop/wasm-browser-app.md
44+
- filesMatchPattern:
45+
matchAny: true
46+
pattern: (?i).*/mvc/views/tag-helpers/built-in/component-tag-helper.md
5947
- filesMatchPattern:
60-
pattern: '(?i).*dotnet-desktop-guide\/net\/winforms.*'
6148
matchAny: true
49+
pattern: (?i).*/mvc/views/tag-helpers/built-in/persist-component-state.md
6250
then:
63-
- addLabel:
64-
label: 'dotnet-desktop/svc'
65-
- addLabel:
66-
label: 'winforms/subsvc'
67-
51+
- requestReviewer:
52+
reviewer: guardrex
53+
- addLabel:
54+
label: blazor/subsvc
6855
onFailure:
6956
onSuccess:

0 commit comments

Comments
 (0)