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 +4 -4
- data/lib/changes_since/changelog_printer.rb +7 -4
- data/lib/changes_since/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e424db5e79783a8dac24b5322e62abb6eb170fb4
|
4
|
+
data.tar.gz: ae1b5d68e1280f49bf8360c0827a296a95eb2de3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}
|
80
|
-
text << "
|
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
|