Skip to content

Support for Pre-Receive Hooks #907

Closed
@fabiovincenzi

Description

@fabiovincenzi

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!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions