From 6ae7cc059b912713e833d81d26c3679e302a2702 Mon Sep 17 00:00:00 2001 From: Clint Rutkas Date: Tue, 15 Nov 2022 10:10:26 -0800 Subject: [PATCH] Update fabricbot.json (#22024) Co-authored-by: Aaron Junker --- .github/fabricbot.json | 79 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/.github/fabricbot.json b/.github/fabricbot.json index 333a56126f..4d175aed6c 100644 --- a/.github/fabricbot.json +++ b/.github/fabricbot.json @@ -634,6 +634,85 @@ ] } }, + { + "taskType": "trigger", + "capabilityId": "IssueResponder", + "subCapability": "IssueCommentResponder", + "version": "1.0", + "id": "bvMkigH2HPgUniYFCNco9", + "config": { + "conditions": { + "operator": "and", + "operands": [ + { + "name": "commentContains", + "parameters": { + "isRegex": true, + "commentPattern": "\\/feedbackHub" + } + }, + { + "operator": "or", + "operands": [ + { + "name": "activitySenderHasAssociation", + "parameters": { + "association": "OWNER" + } + }, + { + "name": "activitySenderHasAssociation", + "parameters": { + "association": "MEMBER" + } + }, + { + "name": "activitySenderHasAssociation", + "parameters": { + "association": "COLLABORATOR" + } + } + ] + } + ] + }, + "eventType": "issue", + "eventNames": [ + "issue_comment" + ], + "taskName": "Helper to mark as feedback hub", + "actions": [ + { + "name": "addReply", + "parameters": { + "comment": "Hi! We've identified this issue that best is suited for Windows Feedback Hub. To do this on Windows, WinKey+F will bring it up!" + } + }, + { + "name": "closeIssue", + "parameters": {} + }, + { + "name": "removeLabel", + "parameters": { + "label": "Needs-Triage" + } + }, + { + "name": "removeLabel", + "parameters": { + "label": "Needs-Team-Response" + } + }, + { + "name": "addLabel", + "parameters": { + "label": "Resolution-Please File on Feedback Hub" + } + } + ] + } + }, { "taskType": "trigger", "capabilityId": "IssueResponder",