Skip to content

Commit

Permalink
fix(writer): change commit url to use full hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Knijf authored and Robin Joseph committed Feb 10, 2016
1 parent 69d81f6 commit 40fe02a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ exports.markdown = function (version, commits, options) {
}

types[type][category].forEach(function (commit) {
var hash = commit.hash.substring(0, 8);
var shorthash = commit.hash.substring(0, 8);

if (options.repoUrl) {
hash = '[' + hash + '](' + options.repoUrl + '/commit/' + hash + ')';
shorthash = '[' + shorthash + '](' + options.repoUrl + '/commit/' + commit.hash + ')';
}

content.push(prefix + ' ' + commit.subject + ' (' + hash + ')');
content.push(prefix + ' ' + commit.subject + ' (' + shorthash + ')');
});
});

Expand Down

0 comments on commit 40fe02a

Please sign in to comment.