From 92f093b99010d8296cc60c355483f53689446d86 Mon Sep 17 00:00:00 2001 From: Artak <34246760+mkArtakMSFT@users.noreply.github.com> Date: Tue, 31 May 2022 10:36:33 -0700 Subject: [PATCH 1/2] Add a rule to mention the `aspnet-build` team on infrastructure issues Also drop a comment on community contributions suggesting that someone will get assigned to the PR soon and get it reviewed. **Note**: Because we don't rely on FabricBot UI any more, I am using the `Internal: Debug` label to validate my new rule. After validation, I'll update this file one more time to remove the condition. --- .github/fabricbot.json | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/.github/fabricbot.json b/.github/fabricbot.json index 17ffad4e42c2..c1716c25bbe7 100644 --- a/.github/fabricbot.json +++ b/.github/fabricbot.json @@ -2516,6 +2516,12 @@ "parameters": { "label": "community-contribution" } + }, + { + "name": "addReply", + "parameters": { + "comment": "Thanks for your PR, @${issueAuthor}. Someone from the team will get assigned to your PR shortly and we'll get it reviewed." + } } ] } @@ -3283,5 +3289,57 @@ } ] } + }, + { + "taskType": "trigger", + "capabilityId": "IssueResponder", + "subCapability": "PullRequestResponder", + "version": "1.0", + "config": { + "conditions": { + "operator": "and", + "operands": [ + { + "name": "labelAdded", + "parameters": { + "label": "area-infrastructure" + } + }, + { + "name": "isAction", + "parameters": { + "action": "labeled" + } + }, + { + "name": "hasLabel", + "parameters": { + "label": "Internal: Debug" + } + } + ] + }, + "eventType": "pull_request", + "eventNames": [ + "pull_request", + "issues", + "project_card" + ], + "taskName": "Ping the build team on infrastructure issues", + "actions": [ + { + "name": "addReply", + "parameters": { + "comment": "Hey @aspnet-build, looks like this PR is something you want to take a look at." + } + }, + { + "name": "assignToUser", + "parameters": { + "user": "aspnet-build" + } + } + ] + } } ] From a8c8a100869c803fab981d7a19ad3e50377a38a7 Mon Sep 17 00:00:00 2001 From: Artak <34246760+mkArtakMSFT@users.noreply.github.com> Date: Tue, 31 May 2022 11:33:32 -0700 Subject: [PATCH 2/2] Update .github/fabricbot.json Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com> --- .github/fabricbot.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/fabricbot.json b/.github/fabricbot.json index c1716c25bbe7..b1b3affeebaf 100644 --- a/.github/fabricbot.json +++ b/.github/fabricbot.json @@ -3330,7 +3330,7 @@ { "name": "addReply", "parameters": { - "comment": "Hey @aspnet-build, looks like this PR is something you want to take a look at." + "comment": "Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at." } }, {