53 lines
1.2 KiB
JSON
53 lines
1.2 KiB
JSON
{
|
|
"_metadata": {
|
|
"major_version": 2
|
|
},
|
|
"display_information": {
|
|
"name": "Slack GitHub Actions Commits",
|
|
"description": "Reading the latest pushes"
|
|
},
|
|
"features": {
|
|
"app_home": {
|
|
"messages_tab_enabled": false
|
|
},
|
|
"bot_user": {
|
|
"display_name": "Slack GitHub Actions Commits"
|
|
}
|
|
},
|
|
"oauth_config": {
|
|
"scopes": {
|
|
"bot": ["channels:manage", "groups:write.topic"]
|
|
}
|
|
},
|
|
"settings": {
|
|
"org_deploy_enabled": true
|
|
},
|
|
"workflows": {
|
|
"follow_recent_commits": {
|
|
"title": "Follow recent commits",
|
|
"description": "Write details of the most recent build",
|
|
"input_parameters": {
|
|
"properties": {
|
|
"commit_message": {
|
|
"type": "string"
|
|
},
|
|
"commit_repository": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["commit_message", "commit_repository"]
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": "0",
|
|
"function_id": "slack#/functions/update_channel_topic",
|
|
"inputs": {
|
|
"channel_id": "C0123456789",
|
|
"topic": ":large_green_square: *{{inputs.commit_repository}}* {{inputs.commit_message}}"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|