[fabricbot] Add initial config file. (#14501)

This initial config file tells the author of an issue that if anybody adds the
`need-info` label, they have 7 days to answer before we close the issue due
to lack of response.
This commit is contained in:
Rolf Bjarne Kvinge 2022-03-28 10:19:12 +02:00 коммит произвёл GitHub
Родитель df7f86c53b
Коммит 00d9e1ba1a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 35 добавлений и 0 удалений

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

@ -0,0 +1,35 @@
[
{
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "IssuesOnlyResponder",
"version": "1.0",
"config": {
"conditions": {
"operator": "and",
"operands": [
{
"name": "labelAdded",
"parameters": {
"label": "need-info"
}
}
]
},
"eventType": "issue",
"eventNames": [
"issues",
"project_card"
],
"taskName": "Add comment when 'need-info' is applied to issue",
"actions": [
{
"name": "addReply",
"parameters": {
"comment": "Hi @${issueAuthor}. We have added the \"need-info\" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time."
}
}
]
}
}
]