From b672a0b301338a570af2e5430b4b7691f909a094 Mon Sep 17 00:00:00 2001 From: Wes Haggard Date: Thu, 2 Nov 2023 16:21:10 -0700 Subject: [PATCH] Add TypeSpec label for PullRequests (#26542) Add TypeSpec label to any PRs that have a *.tsp or tspconfig.yaml file included in their changed files. --- .github/policies/resourceManagement.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml index 7717446efda4..a6d49d2c102e 100644 --- a/.github/policies/resourceManagement.yml +++ b/.github/policies/resourceManagement.yml @@ -2529,7 +2529,16 @@ configuration: then: - removeLabel: label: no-recent-activity - description: + description: + - if: + - payloadType: Pull_Request + then: + - if: + - filesMatchPattern: + pattern: specification/.*(\.tsp|tspconfig.yaml) + then: + - addLabel: + label: TypeSpec - if: - payloadType: Pull_Request then: