Class: Fiesta::Story

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

Direct Known Subclasses

AutoComposedStory

Instance Method Summary collapse

Instance Method Details

#imagesObject



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

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

#release_noteObject



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

def release_note
  (release_note_in_body || title).strip
end

#to_markdownObject



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

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

#urlObject



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

def url
  pr.html_url
end