class Fiesta::Release

Public Instance Methods

post() click to toggle source
# File lib/fiesta/release.rb, line 8
def post
  github.create_release(repo, tag, options)
end

Private Instance Methods

body() click to toggle source
# File lib/fiesta/release.rb, line 30
def body
  stories.map(&:to_markdown).join("\n")
end
github() click to toggle source
# File lib/fiesta/release.rb, line 34
def github
  @_github ||= Github.client
end
name() click to toggle source
# File lib/fiesta/release.rb, line 22
def name
  @name ||= Time.now.to_i.to_s
end
options() click to toggle source
# File lib/fiesta/release.rb, line 14
def options
  {
    name: name,
    body: body,
    target_commitish: revision
  }.compact
end
tag() click to toggle source
# File lib/fiesta/release.rb, line 26
def tag
  "release-#{name}"
end