Sha256: 1680f1c67def61bb6603e6a2984a05da3cc46aab2fa1c91d13d7fd5d06b5ff86

Contents?: true

Size: 385 Bytes

Versions: 3

Compression:

Stored size: 385 Bytes

Contents

module Cp8Cli
  class PullRequestBody
    def initialize(story)
      @story = story
    end

    def run
      return unless story

      summary_with_release_note
    end

    private

      attr_reader :story

      def summary_with_release_note
        story.summary + release_note
      end

      def release_note
        "\n\n_Release note: #{story.title}_"
      end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cp8_cli-6.0.1 lib/cp8_cli/pull_request_body.rb
cp8_cli-6.0.0 lib/cp8_cli/pull_request_body.rb
cp8_cli-5.0.0 lib/cp8_cli/pull_request_body.rb