From 467c2d4bce8910ab92310d3e6f3f6e405c3a60fb Mon Sep 17 00:00:00 2001 From: Allen Zhang Date: Tue, 26 Apr 2022 10:22:18 -0700 Subject: [PATCH] adding fabricbot configuration (#475) --- .github/fabricbot.json | 129 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 .github/fabricbot.json diff --git a/.github/fabricbot.json b/.github/fabricbot.json new file mode 100644 index 000000000..51801d9b1 --- /dev/null +++ b/.github/fabricbot.json @@ -0,0 +1,129 @@ +[ + { + "taskType": "trigger", + "capabilityId": "IssueResponder", + "subCapability": "IssuesOnlyResponder", + "version": "1.0", + "config": { + "taskName": "Add 'Needs Triage' label to new issues", + "conditions": { + "operator": "and", + "operands": [ + { + "name": "isAction", + "parameters": { + "action": "opened" + } + }, + { + "operator": "not", + "operands": [ + { + "name": "isPartOfProject", + "parameters": {} + } + ] + }, + { + "operator": "not", + "operands": [ + { + "name": "isAssignedToSomeone", + "parameters": {} + } + ] + } + ] + }, + "actions": [ + { + "name": "addLabel", + "parameters": { + "label": "Needs Triage" + } + } + ], + "eventType": "issue", + "eventNames": ["issues", "project_card"] + } + }, + { + "taskType": "trigger", + "capabilityId": "IssueResponder", + "subCapability": "IssuesOnlyResponder", + "version": "1.0", + "config": { + "conditions": { + "operator": "and", + "operands": [ + { + "name": "isAction", + "parameters": { + "action": "opened" + } + }, + { + "operator": "and", + "operands": [ + { + "operator": "not", + "operands": [ + { + "name": "activitySenderHasPermissions", + "parameters": { + "permissions": "write" + } + } + ] + }, + { + "operator": "not", + "operands": [ + { + "name": "activitySenderHasAssociation", + "parameters": { + "association": "MEMBER" + } + } + ] + }, + { + "operator": "not", + "operands": [ + { + "name": "activitySenderHasAssociation", + "parameters": { + "association": "COLLABORATOR" + } + } + ] + }, + { + "operator": "not", + "operands": [ + { + "name": "activitySenderHasPermissions", + "parameters": { + "permissions": "admin" + } + } + ] + } + ] + } + ] + }, + "eventType": "issue", + "eventNames": ["issues", "project_card"], + "taskName": "Add customer-reported label to issues coming from non-collaborators", + "actions": [ + { + "name": "addLabel", + "parameters": { + "label": "customer-reported" + } + } + ] + } + } +]