adding fabricbot configuration (#475)

This commit is contained in:
Allen Zhang 2022-04-26 10:22:18 -07:00 коммит произвёл GitHub
Родитель 8cff4dcf25
Коммит 467c2d4bce
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 129 добавлений и 0 удалений

129
.github/fabricbot.json поставляемый Normal file
Просмотреть файл

@ -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"
}
}
]
}
}
]