Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Pre-Receive Hooks #907

Open
fabiovincenzi opened this issue Feb 17, 2025 · 0 comments
Open

Support for Pre-Receive Hooks #907

fabiovincenzi opened this issue Feb 17, 2025 · 0 comments
Assignees

Comments

@fabiovincenzi
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant