lib/robopigeon/slack/attachments_dsl.rb in robopigeon-0.1.0 vs lib/robopigeon/slack/attachments_dsl.rb in robopigeon-0.2.0

- old
+ new

@@ -23,11 +23,11 @@ RoboPigeon::Documentarian.add_command('title', block: %w[job slack attachment], params: [{ name: 'title', type: 'String', desc: 'the title of the attachment', example: 'Job Failed!' }], desc: 'Add a title to your attachment') def title(title) attachment[:title] = title end - RoboPigeon::Documentarian.add_command('title_linke', block: %w[job slack attachment], params: [{ name: 'link', type: 'String', desc: 'a url', example: 'https://gitlab.com/robopigeon/robopigeon/pipelines' }], desc: 'Add a link to the title so that users can click on it') + RoboPigeon::Documentarian.add_command('title_linke', block: %w[job slack attachment], params: [{ name: 'link', type: 'String', desc: 'a url', example: 'https://gitlab.com/pigeons/robopigeon/pipelines' }], desc: 'Add a link to the title so that users can click on it') def title_link(title_link) attachment[:title_link] = title_link end RoboPigeon::Documentarian.add_command('pretext', block: %w[job slack attachment], params: [{ name: 'text', type: 'String', desc: 'a string message', example: 'This message shows up before rest of the attachment' }], desc: 'Add a message that shows up just before your attachment') @@ -44,10 +44,10 @@ 'action', block: %w[job slack attachment], params: [ { name: 'type', type: 'String', desc: 'Currently only supports `button`', example: 'button' }, { name: 'text', type: 'String', desc: 'Field label', example: 'Pipeline' }, - { name: 'url', type: 'String', desc: 'Url to link to', example: 'https://gitlab.com/robopigeon/robopigeon/pipelines' }, + { name: 'url', type: 'String', desc: 'Url to link to', example: 'https://gitlab.com/pigeons/robopigeon/pipelines' }, { name: 'style', type: 'String', desc: 'button style, can be danger or primary', example: 'danger', defaut: 'nil' } ], desc: 'Add a Url linked button to your bot' ) def action(type, text, url, style=nil)