changes_since 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd00ae0f3ab4d177cb56ff9618a7128792ce3022
4
- data.tar.gz: 8777633088042b5d38fc646ac7e80a3122413600
3
+ metadata.gz: e424db5e79783a8dac24b5322e62abb6eb170fb4
4
+ data.tar.gz: ae1b5d68e1280f49bf8360c0827a296a95eb2de3
5
5
  SHA512:
6
- metadata.gz: 5023be7e52096c8fdee3a9e5859362e37cc22acc32a147de5c92473129147465c5f7e38f2582be568d6a651b0e123eb01764b88ec3d3a58ff6cac7813afcab33
7
- data.tar.gz: 2d6eac7fa678b56392f443fea7057728283d02feb0ba3bc500b76a5f74a98288e500a6a206ee599e6c981a7968d63f014299f8018c2dab949de10bcce883e0b9
6
+ metadata.gz: 1dae5b200c93682a878605203d02be7d167d448c5672f143bb8fa5d4932cf5575d8f3ae95408721b865035e5dfd122272fdca483aa8000f9ae9cc09f2182cdc6
7
+ data.tar.gz: 7b007f54f5cd34b8609d077449c29774fe171b134de607709659f62e9cbf05c46ca541642ccf023caf65997b32c7a4a9a9475d00ba1cf5932b675ece9720f4cd
@@ -34,7 +34,7 @@ class ChangesSince::ChangelogPrinter
34
34
  next if team_commits.empty?
35
35
  @commits -= team_commits
36
36
  if options[:markdown]
37
- puts "||*#{team}*||Author||PR||"
37
+ puts "||*#{team}*||Author||PR||#{"Commit" if options[:sha]}"
38
38
  else
39
39
  puts "\n*#{team}*\n"
40
40
  end
@@ -75,11 +75,14 @@ class ChangesSince::ChangelogPrinter
75
75
  end
76
76
  title.gsub!("##{type}", "") if type
77
77
  branch_author = commit.author.name
78
+ sha = commit.sha[0..9] if options[:sha]
78
79
  if options[:markdown]
79
- text = "|#{title}|#{branch_author}|"
80
- text << "[##{pr}|#{@repo}/pulls/#{pr}]|" if @repo
80
+ text = "|#{title}|"
81
+ text << "#{branch_author}|"
82
+ text << "[##{pr}|#{@repo}/pull/#{pr}]|" if @repo
83
+ text << "[#{sha}|#{@repo}/commit/#{sha}]|" if sha
81
84
  else
82
- text = "* #{title} (#{branch_author})"
85
+ text = "* #{title} (#{branch_author}) #{options[:sha] ? commit.sha[0..9] : ''}"
83
86
  end
84
87
  puts text
85
88
  end
@@ -1,3 +1,3 @@
1
1
  module ChangesSince
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: changes_since
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashwin Hegde