diff options
Diffstat (limited to 'jekyll-hook.js')
-rwxr-xr-x | jekyll-hook.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jekyll-hook.js b/jekyll-hook.js index b78fc59..5154fd6 100755 --- a/jekyll-hook.js +++ b/jekyll-hook.js @@ -32,12 +32,14 @@ app.post('/hooks/jekyll/:branch', function(req, res) { // End early if not permitted account if (config.accounts.indexOf(data.owner) === -1) { console.log(data.owner + ' is not an authorized account.'); + if (typeof cb === 'function') cb(); return; } // End early if not permitted branch if (data.branch !== branch) { console.log('Not ' + branch + ' branch.'); + if (typeof cb === 'function') cb(); return; } |