Class: Capistrano::Fiesta::Story

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/fiesta/story.rb

Direct Known Subclasses

AutoComposedStory

Instance Method Summary collapse

Instance Method Details

#imagesObject



13
14
15
# File 'lib/capistrano/fiesta/story.rb', line 13

def images
  pr.body.to_s.scan(/https?:\/\/\S*\.(?:png|jpg|gif)/i)
end

#release_noteObject



9
10
11
# File 'lib/capistrano/fiesta/story.rb', line 9

def release_note
  (release_note_in_body || title).strip
end

#to_markdownObject



21
22
23
# File 'lib/capistrano/fiesta/story.rb', line 21

def to_markdown
  "- [#{title}](#{url})"
end

#urlObject



17
18
19
# File 'lib/capistrano/fiesta/story.rb', line 17

def url
  pr.html_url
end