i'm using Gitlab. Gitlab is creating following link to distribute the same hooks through all repositories
hooks -> /opt/gitlab/embedded/service/gitlab-shell/hooks
Within this directory there's already a post-receive
hook to process the commits properly within Gitlab which is written in ruby. I'd like to add an additional hook written in bash. Is this possible?
Best regards
Gitlab supports project hooks in a
$GIT_DIR/custom_hooks
directory.This is supported for the
pre-receive
,post-receive
andupdate
hooks.From the above webpage:
Running multiple hooks of the same type
This now can be done like any other git repository: Write a delegation script to forward operation to all the hook implementations which you want to be triggered. For example: