re-add lost git_webhook branch filtering
This commit is contained in:
parent
39d14102f9
commit
6a2e4f70df
1 changed files with 5 additions and 0 deletions
|
@ -96,6 +96,11 @@ class Module(ModuleManager.BaseModule):
|
|||
repo_hooked = bool(unfiltered_targets)
|
||||
targets = []
|
||||
for server, channel, hook in unfiltered_targets:
|
||||
if (branch and
|
||||
hook["branches"] and
|
||||
not branch in hook["branches"]):
|
||||
continue
|
||||
|
||||
events = []
|
||||
for hooked_event in hook["events"]:
|
||||
events.append(handler.event_categories(hooked_event))
|
||||
|
|
Loading…
Reference in a new issue