Fixes #5: Don't send a message if an issue has been updated;
This commit is contained in:
parent
d19830b51b
commit
9772ad859f
4
index.js
4
index.js
@ -52,6 +52,10 @@ var handlers = {
|
|||||||
var issueState = issue.state;
|
var issueState = issue.state;
|
||||||
var url = issue.url;
|
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 + '")'];
|
var msg = [projectName + ': issue #' + issueNumber + ' has changed state ("' + issueState + '")'];
|
||||||
msg.push(issueTitle + ' ' + url);
|
msg.push(issueTitle + ' ' + url);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user