Fixes #5: Don't send a message if an issue has been updated;

This commit is contained in:
Benjamin Bouvier 2016-06-24 01:16:38 +02:00
parent d19830b51b
commit 9772ad859f

View File

@ -52,6 +52,10 @@ var handlers = {
var issueState = issue.state;
var url = issue.url;
// Don't trigger the hook on issue's update;
if (issue.action === 'update')
return;
var msg = [projectName + ': issue #' + issueNumber + ' has changed state ("' + issueState + '")'];
msg.push(issueTitle + ' ' + url);