Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hello Team,
I looked at various articles on pre-push/pre-recieve server side hooks and still not able to figure out how to proceed.
Here is my use case:
I have many configuration files in repository and before they pushed to repository, I want to run a jar utility on changed files or on whole repo to make sure that configurations files are in valid format.
If jar utility discovers any error in configuration file, we want to reject the push requested by user.
Can you please suggest whether it is feasible and if it is then how we can achieve it.
Please help by sharing a sample of same kind of implementation.