Yes they can be *bash *too as a *custom_hooks*, but I had the following 
problem:
https://groups.google.com/forum/#!searchin/gitlabhq/custom_hooks/gitlabhq/bVt0JmX77Lw/nLD1whX8InEJ
So that's one reason why I stayed inside the main hook and not using 
*custom_hooks*.

See the *custom_hooks* here:
http://doc.gitlab.com/ce/hooks/custom_hooks.html

I myself am a Ruby rooky, but by googling the most important things I made 
my hook working.
Another problem could be how to find the current user pushing. I solved 
this using the GitlabNet class (which is Ruby):

require '/opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_net'
> api = GitlabNet.new
> user = api.discover(key_id)


I do not know how to do that in bash.

thomas

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/e6b161c4-6b1a-4dce-95e7-f5f94e802a68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to