class Fiesta::Story

Public Instance Methods

images() click to toggle source
# File lib/fiesta/story.rb, line 12
def images
  pr.body.to_s.scan(/https?:\/\/\S*\.(?:png|jpg|gif)/i)
end
release_note() click to toggle source
# File lib/fiesta/story.rb, line 8
def release_note
  (release_note_in_body || title).strip
end
to_markdown() click to toggle source
# File lib/fiesta/story.rb, line 20
def to_markdown
  "- [#{title}](#{url})"
end
url() click to toggle source
# File lib/fiesta/story.rb, line 16
def url
  pr.html_url
end

Private Instance Methods

release_note_in_body() click to toggle source
# File lib/fiesta/story.rb, line 30
def release_note_in_body
  @_release_note_in_body ||= pr.body.to_s[/_Release\snotes?\:?\s(.+?)_/im, 1]
end
title() click to toggle source
# File lib/fiesta/story.rb, line 26
def title
  @_title ||= pr.title.to_s.sub(/\[Delivers #\S+\]\z/, "")
end