Sha256: 8481cc0ac0e0d747d34928fb7f718435f1871b4218963272805a2d6f5f1ecdc6

Contents?: true

Size: 396 Bytes

Versions: 11

Compression:

Stored size: 396 Bytes

Contents

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

    def run
      return if story.summary.blank?

      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

11 entries across 11 versions & 1 rubygems

Version Path
cp8_cli-9.1.1 lib/cp8_cli/pull_request_body.rb
cp8_cli-9.1.0 lib/cp8_cli/pull_request_body.rb
cp8_cli-9.0.3 lib/cp8_cli/pull_request_body.rb
cp8_cli-9.0.2 lib/cp8_cli/pull_request_body.rb
cp8_cli-9.0.1 lib/cp8_cli/pull_request_body.rb
cp8_cli-9.0.0 lib/cp8_cli/pull_request_body.rb
cp8_cli-8.2.1 lib/cp8_cli/pull_request_body.rb
cp8_cli-8.2.0 lib/cp8_cli/pull_request_body.rb
cp8_cli-8.1.0 lib/cp8_cli/pull_request_body.rb
cp8_cli-8.0.1 lib/cp8_cli/pull_request_body.rb
cp8_cli-8.0.0 lib/cp8_cli/pull_request_body.rb