Skip to content

Commit 7641b9f

Browse files
authored
Only ping build-ops for main (#62381)
* Only ping build-ops for main * Revert "Only ping build-ops for main" This reverts commit e050716. * Try this * Fix * Fixup * One more
1 parent 8476a68 commit 7641b9f

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

.github/policies/resourceManagement.yml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ configuration:
186186
- isPullRequest
187187
- isOpen
188188
- hasLabel:
189-
label: 'Type: Dependency Update :arrow_up_small:'
189+
label: 'build-ops'
190190
- noActivitySince:
191191
days: 1
192192
actions:
@@ -201,7 +201,7 @@ configuration:
201201
- isPullRequest
202202
- isOpen
203203
- hasLabel:
204-
label: 'Type: Dependency Update :arrow_up_small:'
204+
label: 'build-ops'
205205
- noActivitySince:
206206
days: 3
207207
actions:
@@ -286,6 +286,26 @@ configuration:
286286
- approvePullRequest:
287287
comment: Auto-approving dependency update.
288288
description: '[Infrastructure PRs] Add area-infrastructure label to dependency update Pull Requests'
289+
- if:
290+
- payloadType: Pull_Request
291+
- isAction:
292+
action: Opened
293+
- isActivitySender:
294+
user: dotnet-maestro[bot]
295+
issueAuthor: False
296+
- targetsBranch:
297+
branch: main
298+
- or:
299+
- titleContains:
300+
pattern: Update dependencies
301+
isRegex: False
302+
- titleContains:
303+
pattern: Source code updates
304+
isRegex: False
305+
then:
306+
- addLabel:
307+
label: 'build-ops'
308+
description: '[Infrastructure PRs] Add build-ops label to dependency update Pull Requests against main'
289309
- if:
290310
- payloadType: Pull_Request
291311
- isAction:
@@ -303,6 +323,8 @@ configuration:
303323
label: area-infrastructure
304324
- addLabel:
305325
label: 'Type: Merge Forward :fast_forward:'
326+
- addLabel:
327+
label: 'build-ops'
306328
- approvePullRequest:
307329
comment: Auto-approving branch merge.
308330
description: '[Infrastructure PRs] Add area-infrastructure label to auto-merge Pull Requests'
@@ -534,16 +556,16 @@ configuration:
534556
- isAction:
535557
action: Opened
536558
- targetsBranch:
537-
branch: release/2.1
559+
branch: release/2.3
538560
then:
539561
- addMilestone:
540-
milestone: 2.1.x
562+
milestone: 2.3.x
541563
- addReply:
542564
reply: >-
543565
Hi @${issueAuthor}. If this is not a tell-mode PR, please make sure to follow the instructions laid out in the [servicing process](https://aka.ms/aspnet/servicing) document.
544566
545567
Otherwise, please add `tell-mode` label.
546-
description: Add release/2.1 targeting PRs to the servicing project
568+
description: Add release/2.3 targeting PRs to the servicing project
547569
- if:
548570
- payloadType: Pull_Request
549571
- labelAdded:
@@ -690,6 +712,8 @@ configuration:
690712
label: area-infrastructure
691713
- addLabel:
692714
label: 'Type: Dependency Update :arrow_up_small:'
715+
- addLabel:
716+
label: 'build-ops'
693717
- approvePullRequest:
694718
comment: Auto-approving SDK update.
695719
- enableAutoMerge:
@@ -709,6 +733,8 @@ configuration:
709733
label: area-infrastructure
710734
- addLabel:
711735
label: 'Type: Dependency Update :arrow_up_small:'
736+
- addLabel:
737+
label: 'build-ops'
712738
- approvePullRequest:
713739
comment: Auto-approving dependabot update.
714740
- enableAutoMerge:

0 commit comments

Comments
 (0)