Sha256: 598ce5fa572f545c208cb6fcfecaeb3c74bf9d84e250077e4e1668721650d845

Contents?: true

Size: 319 Bytes

Versions: 2

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

module PrChangelog
  # A boundary class between git and the rest of the gem
  class GitProxy
    LOG_FORMAT = '- %cn: %s%n%w(80, 2, 2)%b'

    def merge_commits_between(base_ref, current_ref)
      `git log --merges #{base_ref}..#{current_ref} --format='#{LOG_FORMAT}'`
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pr_changelog-0.2.0 lib/pr_changelog/git_proxy.rb
pr_changelog-0.1.1 lib/pr_changelog/git_proxy.rb