From fa6d11d0f45eb43deb403e4150c46eacb4bc1311 Mon Sep 17 00:00:00 2001 From: ZelinWang Date: Thu, 4 May 2023 11:01:35 +0800 Subject: [PATCH 1/2] Update fabricbot.json --- .github/fabricbot.json | 73 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/.github/fabricbot.json b/.github/fabricbot.json index 880e2b48f09..25a2064bb54 100644 --- a/.github/fabricbot.json +++ b/.github/fabricbot.json @@ -4200,7 +4200,7 @@ { "name": "requestReviewer", "parameters": { - "reviewer": "wangzelin007" + "reviewer": "yanzhudd" } } ] @@ -12647,6 +12647,77 @@ } ] } + }, + { + "taskType": "trigger", + "capabilityId": "IssueResponder", + "subCapability": "PullRequestResponder", + "version": "1.0", + "config": { + "conditions": { + "operator": "and", + "operands": [ + { + "name": "isAction", + "parameters": { + "action": "opened" + } + }, + { + "operator": "or", + "operands": [ + { + "name": "titleContains", + "parameters": { + "titlePattern": "[Vv]m-repair", + "isRegex": true + } + }, + { + "name": "bodyContains", + "parameters": { + "bodyPattern": "[Vv]m-repair", + "isRegex": true + } + } + ] + } + ] + }, + "eventType": "pull_request", + "eventNames": [ + "pull_request", + "issues", + "project_card" + ], + "taskName": "[vm-repair] Auto assign labels and reviewers based on PR title/description.", + "actions": [ + { + "name": "requestReviewer", + "parameters": { + "reviewer": "zhoxing-ms" + } + }, + { + "name": "requestReviewer", + "parameters": { + "reviewer": "yanzhudd" + } + }, + { + "name": "addLabel", + "parameters": { + "label": "Auto-Assign" + } + }, + { + "name": "assignToUser", + "parameters": { + "user": "zhoxing-ms" + } + } + ] + } } ], "userGroups": [ From e4664e3777a7f9225d40b1e896af1da654090564 Mon Sep 17 00:00:00 2001 From: ZelinWang Date: Thu, 4 May 2023 11:52:09 +0800 Subject: [PATCH 2/2] Update fabricbot.json --- .github/fabricbot.json | 69 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/.github/fabricbot.json b/.github/fabricbot.json index 25a2064bb54..5b6cebbba86 100644 --- a/.github/fabricbot.json +++ b/.github/fabricbot.json @@ -12718,6 +12718,75 @@ } ] } + }, + { + "taskType": "trigger", + "capabilityId": "IssueResponder", + "subCapability": "IssuesOnlyResponder", + "version": "1.0", + "config": { + "conditions": { + "operator": "and", + "operands": [ + { + "operator": "or", + "operands": [ + { + "name": "titleContains", + "parameters": { + "titlePattern": "az azurestackhci", + "isRegex": true + } + }, + { + "name": "bodyContains", + "parameters": { + "bodyPattern": "az azurestackhci", + "isRegex": true + } + } + ] + }, + { + "operator": "or", + "operands": [ + { + "name": "isAction", + "parameters": { + "action": "opened" + } + } + ] + } + ] + }, + "eventType": "issue", + "eventNames": [ + "issues", + "project_card" + ], + "taskName": "[azurestackhci] auto assign labels and users based on issue description.", + "actions": [ + { + "name": "addLabel", + "parameters": { + "label": "Auto-Assign" + } + }, + { + "name": "addLabel", + "parameters": { + "label": "AzureStackHCI" + } + }, + { + "name": "addLabel", + "parameters": { + "label": "CXP Attention" + } + } + ] + } } ], "userGroups": [