microsoft/typespec
Publicmirrored from https://github.com/microsoft/typespecAvailable
.github/fabricbot.json
129lines · modecode
| 1 | [ |
| 2 | { |
| 3 | "taskType": "trigger", |
| 4 | "capabilityId": "IssueResponder", |
| 5 | "subCapability": "IssuesOnlyResponder", |
| 6 | "version": "1.0", |
| 7 | "config": { |
| 8 | "taskName": "Add 'Needs Triage' label to new issues", |
| 9 | "conditions": { |
| 10 | "operator": "and", |
| 11 | "operands": [ |
| 12 | { |
| 13 | "name": "isAction", |
| 14 | "parameters": { |
| 15 | "action": "opened" |
| 16 | } |
| 17 | }, |
| 18 | { |
| 19 | "operator": "not", |
| 20 | "operands": [ |
| 21 | { |
| 22 | "name": "isPartOfProject", |
| 23 | "parameters": {} |
| 24 | } |
| 25 | ] |
| 26 | }, |
| 27 | { |
| 28 | "operator": "not", |
| 29 | "operands": [ |
| 30 | { |
| 31 | "name": "isAssignedToSomeone", |
| 32 | "parameters": {} |
| 33 | } |
| 34 | ] |
| 35 | } |
| 36 | ] |
| 37 | }, |
| 38 | "actions": [ |
| 39 | { |
| 40 | "name": "addLabel", |
| 41 | "parameters": { |
| 42 | "label": "Needs Triage" |
| 43 | } |
| 44 | } |
| 45 | ], |
| 46 | "eventType": "issue", |
| 47 | "eventNames": ["issues", "project_card"] |
| 48 | } |
| 49 | }, |
| 50 | { |
| 51 | "taskType": "trigger", |
| 52 | "capabilityId": "IssueResponder", |
| 53 | "subCapability": "IssuesOnlyResponder", |
| 54 | "version": "1.0", |
| 55 | "config": { |
| 56 | "conditions": { |
| 57 | "operator": "and", |
| 58 | "operands": [ |
| 59 | { |
| 60 | "name": "isAction", |
| 61 | "parameters": { |
| 62 | "action": "opened" |
| 63 | } |
| 64 | }, |
| 65 | { |
| 66 | "operator": "and", |
| 67 | "operands": [ |
| 68 | { |
| 69 | "operator": "not", |
| 70 | "operands": [ |
| 71 | { |
| 72 | "name": "activitySenderHasPermissions", |
| 73 | "parameters": { |
| 74 | "permissions": "write" |
| 75 | } |
| 76 | } |
| 77 | ] |
| 78 | }, |
| 79 | { |
| 80 | "operator": "not", |
| 81 | "operands": [ |
| 82 | { |
| 83 | "name": "activitySenderHasAssociation", |
| 84 | "parameters": { |
| 85 | "association": "MEMBER" |
| 86 | } |
| 87 | } |
| 88 | ] |
| 89 | }, |
| 90 | { |
| 91 | "operator": "not", |
| 92 | "operands": [ |
| 93 | { |
| 94 | "name": "activitySenderHasAssociation", |
| 95 | "parameters": { |
| 96 | "association": "COLLABORATOR" |
| 97 | } |
| 98 | } |
| 99 | ] |
| 100 | }, |
| 101 | { |
| 102 | "operator": "not", |
| 103 | "operands": [ |
| 104 | { |
| 105 | "name": "activitySenderHasPermissions", |
| 106 | "parameters": { |
| 107 | "permissions": "admin" |
| 108 | } |
| 109 | } |
| 110 | ] |
| 111 | } |
| 112 | ] |
| 113 | } |
| 114 | ] |
| 115 | }, |
| 116 | "eventType": "issue", |
| 117 | "eventNames": ["issues", "project_card"], |
| 118 | "taskName": "Add customer-reported label to issues coming from non-collaborators", |
| 119 | "actions": [ |
| 120 | { |
| 121 | "name": "addLabel", |
| 122 | "parameters": { |
| 123 | "label": "customer-reported" |
| 124 | } |
| 125 | } |
| 126 | ] |
| 127 | } |
| 128 | } |
| 129 | ] |
| 130 | |