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

Closed
fabiovincenzi opened this issue Feb 17, 2025 · 0 comments · Fixed by #954
Closed

Support for Pre-Receive Hooks #907

fabiovincenzi opened this issue Feb 17, 2025 · 0 comments · Fixed by #954
Assignees
Labels

Comments

@fabiovincenzi
Copy link
Contributor

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants