summaryrefslogtreecommitdiff
path: root/jekyll-hook.js
diff options
context:
space:
mode:
Diffstat (limited to 'jekyll-hook.js')
-rwxr-xr-xjekyll-hook.js2
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;
}