{ "_metadata": { "major_version": 2 }, "display_information": { "name": "Slack GitHub Actions Releaser", "description": "Sharing the latest news in channel" }, "features": { "app_home": { "messages_tab_enabled": false }, "bot_user": { "display_name": "Slack GitHub Actions Releaser" } }, "oauth_config": { "scopes": { "bot": ["chat:write", "chat:write.public", "reactions:write"] } }, "settings": { "org_deploy_enabled": true }, "workflows": { "release_announcement": { "title": "Release announcement", "description": "Share excitement around the latest changes", "input_parameters": { "properties": { "draft_channel": { "type": "slack#/types/channel_id" }, "release_notes": { "type": "string" }, "release_repository": { "type": "string" }, "release_version": { "type": "string" } }, "required": [ "draft_channel", "release_notes", "release_repository", "release_version" ] }, "steps": [ { "id": "0", "function_id": "slack#/functions/send_message", "inputs": { "channel_id": "{{inputs.draft_channel}}", "message": "A new release of was tagged! :rocket:", "interactive_blocks": [ { "type": "actions", "elements": [ { "type": "button", "text": { "type": "plain_text", "text": "Share" }, "action_id": "share" } ] } ] } }, { "id": "1", "function_id": "slack#/functions/open_form", "inputs": { "title": "Share the release notes", "interactivity": "{{steps.0.interactivity}}", "submit_label": "Share", "fields": { "elements": [ { "name": "announcement_channel", "title": "Select an announcements channel", "type": "slack#/types/channel_id" } ], "required": ["announcement_channel"] } } }, { "id": "2", "function_id": "slack#/functions/send_message", "inputs": { "channel_id": "{{steps.1.fields.announcement_channel}}", "message": "A new release of was tagged! :rocket:\n```{{inputs.release_notes}}```" } }, { "id": "3", "function_id": "slack#/functions/add_reaction", "inputs": { "message_context": "{{steps.2.message_context}}", "emoji": "tada" } } ] } } }