node-gitlab-hook icon indicating copy to clipboard operation
node-gitlab-hook copied to clipboard

Run Tasks only for specific Branch

Open smyth64 opened this issue 9 years ago • 1 comments

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.

smyth64 avatar Jun 09 '16 23:06 smyth64

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.

lili21 avatar Sep 08 '16 06:09 lili21