72 lines
1.7 KiB
JSON
72 lines
1.7 KiB
JSON
{
|
|
"_metadata": {
|
|
"major_version": 2
|
|
},
|
|
"display_information": {
|
|
"name": "slacktion",
|
|
"description": "an application for developing the Slack GitHub Action"
|
|
},
|
|
"features": {
|
|
"app_home": {
|
|
"messages_tab_enabled": true,
|
|
"messages_tab_read_only_enabled": true
|
|
},
|
|
"bot_user": {
|
|
"display_name": "slacktion"
|
|
}
|
|
},
|
|
"oauth_config": {
|
|
"scopes": {
|
|
"bot": [
|
|
"chat:write",
|
|
"chat:write.public",
|
|
"files:write",
|
|
"incoming-webhook",
|
|
"reactions:write"
|
|
]
|
|
}
|
|
},
|
|
"settings": {
|
|
"org_deploy_enabled": true,
|
|
"incoming_webhooks": {
|
|
"incoming_webhooks_enabled": true
|
|
}
|
|
},
|
|
"workflows": {
|
|
"event_notifications": {
|
|
"title": "GitHub event notifications",
|
|
"description": "A new changeset has been discovered",
|
|
"input_parameters": {
|
|
"properties": {
|
|
"author": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "slack#/types/channel_id"
|
|
},
|
|
"repo_name": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"event_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["author", "channel_id", "repo_name", "status", "event_url"]
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": "0",
|
|
"function_id": "slack#/functions/send_message",
|
|
"inputs": {
|
|
"channel_id": "{{inputs.channel_id}}",
|
|
"message": ":ship: {{inputs.repo_name}}(@{{inputs.author}}): `{{inputs.status}}` <{{inputs.event_url}}|Check it out here>!"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|