Permalink
Browse files

Update pull req message format.

  • Loading branch information...
James Socol
James Socol committed Oct 26, 2011
1 parent ab22312 commit 741ab705f79c894ac83ce222c60faaf623919370
Showing with 3 additions and 2 deletions.
  1. +3 −2 jig.js
View
5 jig.js
@@ -58,7 +58,7 @@ var client = new irc.Client(IRCHOST, IRCNICK, {
});
-var response = '\00303#%(number)s\003 - \00307%(title)s\003 - %(url)s';
+var response = '\002#%(number)s\002 - \00303%(user)s\003 - %(title)s - %(url)s';
client.on('message', function(from, to, msg) {
if (to.indexOf('#') != 0) return;
msg = msg.toLowerCase();
@@ -76,7 +76,8 @@ client.on('message', function(from, to, msg) {
interpolate(response, {
'number': pull.number,
'title': pull.title,
- 'url': pull.html_url
+ 'url': pull.html_url,
+ 'user': pull.user.name
}, true));
});
}

0 comments on commit 741ab70

Please sign in to comment.