diff --git a/jobs/github-event/push.js b/jobs/github-event/push.js index 59c681a2..21c9cb45 100644 --- a/jobs/github-event/push.js +++ b/jobs/github-event/push.js @@ -20,7 +20,8 @@ module.exports = async function (data) { 'package.json', 'package-lock.json', 'npm-shrinkwrap.json', - 'yarn.lock' + 'yarn.lock', + 'greenkeeper.json' ] // if .greenkeeperrc @@ -64,6 +65,8 @@ module.exports = async function (data) { } } +// needs to happen for all the package.jsons +// delete all branches for modified or deleted dependencies const changes = diff(oldPkg, pkg) const branches = [] @@ -110,7 +113,9 @@ function hasRelevantChanges (commits, files) { return _.some(files, file => { return _.some(['added', 'removed', 'modified'], changeType => { return _.some(commits, commit => { - return _.includes(commit[changeType], file) + return _.some(commit[changeType], (path) => { + return path.includes(file) + }) }) }) })