Browse files

show full url to to github issue on command line output

  • Loading branch information...
1 parent 51bb47f commit 79b580499b97f2299cd528d7f29bb521554a4710 @dylang committed Aug 23, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/output.js
View
5 lib/output.js
@@ -1,7 +1,6 @@
var Util = require('./util');
var Color = require('./color');
-
function color(data, cb) {
var output = [];
var err = !data || !data.versions || !data.versions.length ? new Error ('No Changes') : null;
@@ -24,9 +23,9 @@ function color(data, cb) {
if (!uniqueChanges[change.message]) {
var message = change.message
.replace(/([^`]*)`([^`]*)`([^`]*)/g, '$1' + Color.GREEN + '$2' + Color.RESET + '$3')
- .replace(/(#[0-9]*)/g, Color.CYAN + '$1' + Color.RESET)
+ .replace(/#([0-9]*)/g, Color.CYAN + 'https://github.com/' + data.project.github + '/issues/$1' + Color.RESET)
.replace(/^(\[[^\]]*\])/, Color.GREY + '$1' + Color.RESET);
- output.push(Color.RESET + Util.bullet(message, '\u2022') + Color.RESET);
+ output.push(Color.RESET + Util.bullet(message) + Color.RESET);
}
uniqueChanges[change.message] = true;
});

0 comments on commit 79b5804

Please sign in to comment.