Merge pull request #268 from Azure/fabricbot-configuration-migration

Migrate FabricBot Tasks to Config-as-Code
This commit is contained in:
Ángel Pérez 2022-08-02 07:39:40 -04:00 коммит произвёл GitHub
Родитель 5e4180d626 cdf29b7968
Коммит 4a97decfdd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 111 добавлений и 0 удалений

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

@ -0,0 +1,111 @@
{
"version": "1.0",
"tasks": [
{
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "IssuesOnlyResponder",
"version": "1.0",
"id": "r-15QIs55",
"config": {
"conditions": {
"operator": "and",
"operands": [
{
"name": "isAction",
"parameters": {
"action": "opened"
}
},
{
"operator": "not",
"operands": [
{
"name": "isPartOfProject",
"parameters": {}
}
]
},
{
"operator": "not",
"operands": [
{
"name": "isAssignedToSomeone",
"parameters": {}
}
]
}
]
},
"eventType": "issue",
"eventNames": [
"issues",
"project_card"
],
"taskName": "Adds 'Needs: Triage' label for new issues",
"actions": [
{
"name": "addLabel",
"parameters": {
"label": "Needs Triage :mag:"
}
}
]
}
},
{
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "IssueCommentResponder",
"version": "1.0",
"id": "NZKz_MGiV",
"config": {
"conditions": {
"operator": "and",
"operands": [
{
"name": "isAction",
"parameters": {
"action": "created"
}
},
{
"name": "isActivitySender",
"parameters": {
"user": {
"type": "author"
}
}
},
{
"name": "hasLabel",
"parameters": {
"label": "Needs Author Feedback"
}
}
]
},
"eventType": "issue",
"eventNames": [
"issue_comment"
],
"taskName": "Replace 'Needs: Author Feedback' with 'Needs: Attention' label when author comments",
"actions": [
{
"name": "addLabel",
"parameters": {
"label": "Needs Attention :wave:"
}
},
{
"name": "removeLabel",
"parameters": {
"label": "Needs Author Feedback"
}
}
]
}
}
],
"userGroups": []
}