Sha256: 86509e1eebe5418cfbf5b21c273f300e7b957e408bfcc0da89d1dcbfa2fb78cb
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 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 commits_between(base_ref, current_ref) `git log #{base_ref}..#{current_ref} --format='#{LOG_FORMAT}'` end def merge_commits_between(base_ref, current_ref) `git log --merges #{base_ref}..#{current_ref} --format='#{LOG_FORMAT}'` end def git_tags_list `git tag --list`.split("\n") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pr_changelog-0.4.1 | lib/pr_changelog/git_proxy.rb |
pr_changelog-0.4.0 | lib/pr_changelog/git_proxy.rb |