From 2fa320cf601ce68203a6fd6a94b4cc10a673ae8c Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Tue, 5 Mar 2024 13:33:46 -0800 Subject: [PATCH] move scheduled search; try different label action --- .github/policies/resourceManagement.yml | 153 +++--------------------- .github/policies/scheduledPR.yml | 34 ++++++ 2 files changed, 48 insertions(+), 139 deletions(-) create mode 100644 .github/policies/scheduledPR.yml diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml index 860aa2e4339..d721f9ec6e3 100644 --- a/.github/policies/resourceManagement.yml +++ b/.github/policies/resourceManagement.yml @@ -7,32 +7,21 @@ disabled: false where: configuration: resourceManagementConfiguration: - scheduledSearches: - - description: Push to live branch (publish) - frequencies: - - weekday: - day: Tuesday - time: 08:0 - - weekday: - day: Wednesday - time: 08:0 - - weekday: - day: Thursday - time: 08:0 - - weekday: - day: Friday - time: 08:0 - - weekday: - day: Saturday - time: 08:0 - filters: [] - actions: - - createPullRequest: - head: main - base: live - title: Merge main into live - body: Please don't squash-merge this PR. eventResponderTasks: + - if: + - or: + - payloadType: Issues + - payloadType: Pull_Request + - labelAdded: + label: area-System.Security + then: + - mentionUsers: + mentionees: + - dotnet/area-system-security + - vcsjones + replyTemplate: >- + Tagging subscribers to this area: ${mentionees} + assignMentionees: False - if: - or: - payloadType: Issues @@ -48,8 +37,6 @@ configuration: - vcsjones replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -60,8 +47,6 @@ configuration: - dotnet/area-system-drawing replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -72,8 +57,6 @@ configuration: - dotnet/area-system-diagnostics-tracing replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -84,8 +67,6 @@ configuration: - dotnet/area-system-globalization replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -96,8 +77,6 @@ configuration: - dotnet/area-system-linq-parallel replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -108,8 +87,6 @@ configuration: - dotnet/area-system-resources replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -120,8 +97,6 @@ configuration: - dotnet/area-system-text-encoding replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -132,8 +107,6 @@ configuration: - dotnet/area-system-text-encodings-web replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -144,8 +117,6 @@ configuration: - dotnet/area-system-threading-channels replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -156,8 +127,6 @@ configuration: - dotnet/area-system-threading-tasks replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -168,8 +137,6 @@ configuration: - dotnet/area-dependencymodel replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -180,8 +147,6 @@ configuration: - dotnet/area-system-text-regularexpressions replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -192,8 +157,6 @@ configuration: - dotnet/area-system-collections replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -204,8 +167,6 @@ configuration: - dotnet/area-system-linq replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -216,8 +177,6 @@ configuration: - dotnet/area-system-numerics-tensors replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -228,8 +187,6 @@ configuration: - dotnet/area-system-buffers replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -240,8 +197,6 @@ configuration: - dotnet/area-system-numerics replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -252,8 +207,6 @@ configuration: - dotnet/area-system-runtime-intrinsics replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -264,8 +217,6 @@ configuration: - dotnet/area-system-codedom replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -276,8 +227,6 @@ configuration: - dotnet/area-system-xml replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -288,8 +237,6 @@ configuration: - cston replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -300,8 +247,6 @@ configuration: - cston replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -312,8 +257,6 @@ configuration: - cston replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -324,8 +267,6 @@ configuration: - cston replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -336,8 +277,6 @@ configuration: - dotnet/area-system-componentmodel replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -348,8 +287,6 @@ configuration: - dotnet/area-system-configuration replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -360,8 +297,6 @@ configuration: - dotnet/area-system-componentmodel-composition replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -372,8 +307,6 @@ configuration: - dotnet/area-system-composition replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -384,8 +317,6 @@ configuration: - dotnet/ncl replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -396,8 +327,6 @@ configuration: - dotnet/ncl replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -409,8 +338,6 @@ configuration: - vcsjones replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -421,8 +348,6 @@ configuration: - dotnet/ncl replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -433,8 +358,6 @@ configuration: - tommcdon replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -446,8 +369,6 @@ configuration: - ajcvickers replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -459,8 +380,6 @@ configuration: - ajcvickers replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -472,8 +391,6 @@ configuration: - ajcvickers replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -486,8 +403,6 @@ configuration: - jrahnama replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -498,8 +413,6 @@ configuration: - ajcvickers replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -510,8 +423,6 @@ configuration: - dotnet/area-extensions-caching replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -522,8 +433,6 @@ configuration: - dotnet/area-extensions-dependencyinjection replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -534,8 +443,6 @@ configuration: - dotnet/area-extensions-hosting replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -546,8 +453,6 @@ configuration: - dotnet/area-extensions-primitives replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -558,8 +463,6 @@ configuration: - dotnet/area-extensions-configuration replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -570,8 +473,6 @@ configuration: - dotnet/area-extensions-filesystem replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -582,8 +483,6 @@ configuration: - dotnet/ncl replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -594,8 +493,6 @@ configuration: - dotnet/area-extensions-logging replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -606,8 +503,6 @@ configuration: - dotnet/area-extensions-options replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -618,8 +513,6 @@ configuration: - dotnet/ncl replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -630,8 +523,6 @@ configuration: - dotnet/area-system-formats-cbor replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -642,8 +533,6 @@ configuration: - dotnet/area-system-formats-asn1 replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -654,8 +543,6 @@ configuration: - dotnet/area-system-text-json replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -666,8 +553,6 @@ configuration: - dotnet/area-system-memory replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -678,8 +563,6 @@ configuration: - dotnet/area-system-diagnostics-activity replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -690,8 +573,6 @@ configuration: - dotnet/area-system-io replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -702,8 +583,6 @@ configuration: - dotnet/area-system-diagnostics-process replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -714,8 +593,6 @@ configuration: - dotnet/area-system-console replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False - if: - labelAdded: @@ -726,8 +603,6 @@ configuration: - dotnet/area-system-io-compression replyTemplate: >- Tagging subscribers to this area: ${mentionees} - - See info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed. assignMentionees: False description: Area-owners - if: diff --git a/.github/policies/scheduledPR.yml b/.github/policies/scheduledPR.yml new file mode 100644 index 00000000000..4ac7b91ea3b --- /dev/null +++ b/.github/policies/scheduledPR.yml @@ -0,0 +1,34 @@ +id: +name: GitOps.PullRequestIssueManagement +description: GitOps.PullRequestIssueManagement primitive +owner: +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + scheduledSearches: + - description: Push to live branch (publish) + frequencies: + - weekday: + day: Tuesday + time: 08:0 + - weekday: + day: Wednesday + time: 08:0 + - weekday: + day: Thursday + time: 08:0 + - weekday: + day: Friday + time: 08:0 + - weekday: + day: Saturday + time: 08:0 + filters: [] + actions: + - createPullRequest: + head: main + base: live + title: Merge main into live + body: Please don't squash-merge this PR.