From 509604df22abc9841e6a28089bebe6d664fb4fce Mon Sep 17 00:00:00 2001 From: "msftbot[bot]" <48340428+msftbot[bot]@users.noreply.github.com> Date: Mon, 15 Aug 2022 11:26:17 -0700 Subject: [PATCH] Add `.github/fabricbot.json` (#1427) Co-authored-by: msftbot[bot] <48340428+msftbot[bot]@users.noreply.github.com> --- .github/fabricbot.json | 66 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/fabricbot.json diff --git a/.github/fabricbot.json b/.github/fabricbot.json new file mode 100644 index 00000000..35050dca --- /dev/null +++ b/.github/fabricbot.json @@ -0,0 +1,66 @@ +{ + "version": "1.0", + "tasks": [ + { + "taskType": "trigger", + "capabilityId": "IssueResponder", + "subCapability": "PullRequestResponder", + "version": "1.0", + "config": { + "conditions": { + "operator": "and", + "operands": [ + { + "name": "isAction", + "parameters": { + "action": "opened" + } + }, + { + "name": "isActivitySender", + "parameters": { + "user": "dotnet-maestro[bot]", + "association": "CONTRIBUTOR" + } + }, + { + "name": "titleContains", + "parameters": { + "titlePattern": "Update dependencies" + } + } + ] + }, + "eventType": "pull_request", + "eventNames": [ + "pull_request", + "issues", + "project_card" + ], + "taskName": "[Infrastructure PRs] Add area-infrastructure label to dependency update Pull Requests", + "actions": [ + { + "name": "addLabel", + "parameters": { + "label": "area infrastructure" + } + }, + { + "name": "addLabel", + "parameters": { + "label": "type dependency update :arrow_up_small:" + } + }, + { + "name": "approvePullRequest", + "parameters": { + "comment": "Auto-approving dependency update." + } + } + ] + }, + "id": "1nLbqIfVUhMWfhzLxKgeT" + } + ], + "userGroups": [] +}