Permalink
Browse files

Fix pull req owner and add state.

  • Loading branch information...
1 parent 8fbb2cb commit ec675628bf11e3bbeb41d16b406478478c662012 James Socol committed Jul 12, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 jig.js
View
5 jig.js
@@ -57,7 +57,7 @@ var client = new irc.Client(IRCHOST, IRCNICK, {
});
-var response = '\00307#%(number)s\003 - \00303%(user)s\003 - %(title)s - %(url)s';
+var response = '\00307#%(number)s\003 - \002%(state)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();
@@ -78,7 +78,8 @@ client.on('message', function(from, to, msg) {
'number': pull.number,
'title': pull.title,
'url': pull.html_url,
- 'user': pull.user.name
+ 'user': pull.user.login,
+ 'state': pull.state.toUpperCase()
}, true));
});
}

0 comments on commit ec67562

Please sign in to comment.