Add ability to configure a global set of custom hooks
Description including problem, use cases, benefits, and/or goals
Organisations would like to apply custom git hooks to all projects, present and future. This makes it easier to enforce a very specific workflow.
Right now, this requires manual editing the server for each new project.
We can do global custom_hooks directory in gitlab-shell. There you can put custom hooks that will be symlinked to every new project created. If you don't want a hook in certain project - just manually remove symlink. Its also up to author to make a proper error messages in hooks to make experience more friendly.
A rake task that would show which projects have or lack the symlink would make this significantly easier.
Some organizations configure custom hooks that they wish to apply to all projects - present and future. This is especially useful for pre-receive hooks - adding some policy check before accepting a push. This could potentially be accomplished through a symlink or we could add an additional call to global hooks before project-specific custom hooks.
This feature was requested by a large prospective organization.
cc/ @dzaporozhets What do you think?