Filtering incoming requests by edited action

This commit is contained in:
Pol.Alvarez@BSC 2018-03-02 13:40:38 +01:00
parent 1c2ad61055
commit bbad087a01
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ const logger = winston.createLogger({
const needsFunding = function (req) {
if (req.body.action !== 'created' || !req.body.hasOwnProperty('comment')) {
if (req.body.action === 'edited' || !req.body.hasOwnProperty('comment')) {
return false
} else if (req.body.comment.user.login !== config.githubUsername) {
return false