Yes, that is how I added a custom hook. My problem was I needed to pass the username to the custom hook which is needed by another component. What I did which I think is very ugly way is on the gitlab-shell custom script, the one which runs the custom hooks, I write the username in a file while invoking the update hook and then read the file while running the post-receive hook. I am new to ruby and to the whole architecture so that is how I've done it. The value can be either the key id or the user id, if I am not mistaken. Many days have pass already and I cannot remember the actual code. But it code have been better implemented if I will just have to read or write on 0MQ. Thank you very much for the link, this would benefit others.
On Thursday, May 28, 2015 at 4:19:44 AM UTC+8, Karen Carias wrote: > > Hi Austin. Here's how to configure custom git hooks > http://doc.gitlab.com/ce/hooks/custom_hooks.html > > -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/2f1790e4-1835-4317-b42e-4e25fa046f9f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.