Description
Is your feature request related to a problem? Please describe.
Our organization would like to introduce support for defining pre-receive hooks. This would allow automatic approval or rejection of pushes based on predefined rules.
Describe the solution you'd like
We propose adding support for pre-receive hooks by executing .sh scripts located in a dedicated ./hooks directory. These scripts would allow administrators to define conditions under which a push is either accepted or rejected. The goal is to mimic GitHub's existing flow for pre-receive hooks.
Additional context
We have developed an initial implementation, which is available in the following PR: G-Research#11. We welcome feedback and suggestions to refine this feature further!