node-gitlab-hook
node-gitlab-hook copied to clipboard
Run Tasks only for specific Branch
Hey there!
Is it possible to say: "Only when the master branch got changed, do the scripts."?
Because now it always does the scripts but I only want it when the master branch got updated.
I think you can do it by callback.
var gitlabhook = require('gitlabhook');
var gitlab = gitlabhook({/* options */} [, callback]);
gitlab.listen();
the callback function will receive request data as argument.