class Cp8Cli::PullRequestBody
Attributes
story[R]
Public Class Methods
new(story)
click to toggle source
# File lib/cp8_cli/pull_request_body.rb, line 3 def initialize(story) @story = story end
Public Instance Methods
run()
click to toggle source
# File lib/cp8_cli/pull_request_body.rb, line 7 def run return if story.summary.blank? summary_with_release_note end
Private Instance Methods
release_note()
click to toggle source
# File lib/cp8_cli/pull_request_body.rb, line 21 def release_note "\n\n_Release note: #{story.title}_" end
summary_with_release_note()
click to toggle source
# File lib/cp8_cli/pull_request_body.rb, line 17 def summary_with_release_note story.summary + release_note end