Web UI create/delete branch actions not triggering the custom hooks (gitlab 7.5)
Created by: jkbzh
This doesn't have anything to do with the custom hooks itself, but with the trigger that invokes them when using gitlab's web UI. Let me describe the scenario. I have a repo in gitlab and my custom hooks that do a sync to a remote puppet repo.
The following working seamlessly, working from a local clone of the repo and pushing to gitlab:
- Creating a new branch and pushing it --> custom hooks are called and branch is synced in puppet box
- Deleting a remote branch (e.g. git push origin :branchname) --> custom hooks are called and branch is deleted in puppet box.
However, if I do the same operations thru gitlab's web UI, the custom hooks are not called
- Creating a new branch --> branch is created in gitlab, but the custom hooks are not called.
- Deleting the branch --> branch is deleted in gitlab, but the custom hooks are not called
It seems that the code that needs to trigger the hooks events is not being called. Part of that code does seem to exist because the custom hooks are called when I do edit and merge operations thru the web UI. Furthermore, if I have a branch that is already synced to my puppet repo and I do a merge operation using the UI and choose to delete it, the custom hook will be called and the branch is deleted in the remote puppet repo.
Feel free to contact me if you need further testing with this issue.