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

Add git pre-commit and pre-push hook #10

Open
imranhasanhira opened this issue Oct 30, 2022 · 0 comments
Open

Add git pre-commit and pre-push hook #10

imranhasanhira opened this issue Oct 30, 2022 · 0 comments

Comments

@imranhasanhira
Copy link
Member

Sometimes we want to ensure several things to avoid mistakes

  1. Every commit is associated with it's corresponding issue number.
  2. Any change to the database schema file, should also have a mention the schema change issue
  3. .....

The task is to setup git hook scripts that can be shared by team members automatically.
A reference plugin for java: https://github.com/rudikershaw/git-build-hook

Wait, but why?
Many web-based hosting services for version control using Git, do not allow server side hooks. Server side hooks are extremely useful for enforcing certain styles of commit message, restricting the kind and types of actions that can be performed against certain branches, providing useful feedback or advice during certain actions in Git, and much more. This kind of quick feedback is advantageous when managing any large group of developers.

If you cannot perform these kind of actions server side, what else can be done? Well, the hooks can be installed on the developers local machines. But it can be difficult to organise groups of people to install these hooks and even more difficult to get updates out to everyone.

If only there was some way that the hooks could be managed in your project repository and installed automatically during your build. Well, that is what this plugin is for.

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

No branches or pull requests

1 participant