Migrate FabricBot Tasks to Config-as-Code

TL;DR; Requesting to add FabricBot configuration associated with your repository to .github/fabricbot.json.

Context

FabricBot is now a config-as-code-only platform. As a result, while you can still use the FabricBot Configuration Portal to modify your FabricBot configuration, you can no longer save the changes. The only way to save changes to your configuration at the moment is to export configuration from the portal and upload the exported configuration to .github/fabricbot.json in your repository. In this pull request, we are adding your FabricBot configuration to your repository at .github/fabricbot.json so that you can make changes to it going forward.

While the FabricBot Configuration Portal is the only way to modify your FabricBot configuration at the moment, we have a feature on our backlog to publish the JSON schema defining the structure of the FabricBot configuration file. With the JSON schema, you can (1) use a plaintext editor of your choice to modify the FabricBot configuration file and use the schema to validate the file after editing or (2) configure VS Code to use the schema when editing FabricBot configuration file to take advantage of convenience features such as automatic code completion and field description on mouseover.

Pull Request Create, a MerlinBot Extension, was used to automatically create this pull request. If you have any questions or concerns with this pull request, please contact MerlinBot Expert DRI.

Co-authored-by: msftbot[bot] <48340428+msftbot[bot]@users.noreply.github.com>
This commit is contained in:
msftbot[bot] 2022-07-29 14:56:43 -04:00 коммит произвёл GitHub
Родитель b90c543dc5
Коммит 3d5560c9f9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 40 добавлений и 0 удалений

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

@ -0,0 +1,40 @@
{
"version": "1.0",
"tasks": [
{
"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": "This issue require more information, and will be closed if more information hasn't been provided."
}
}
]
},
"id": "ObNxroQeWKKVlIEoG2Vvy"
}
],
"userGroups": []
}