DEV Community

Discussion on: How to check commit message and branch name with git hooks without any new installation

Collapse
 
remcoboerma profile image
Remco Boerma

Thanks for sharing. Really useful example to demonstrate git commit hooks.

Since this solution requires bash, I assume python is available on every platform your team develops on. Have you seen python-semantic-release.readthedoc...?
Probably it's best suited for Python projects, but it does a lot of mundane work like keeping up the changelog.
Also it requires some installation of the command, which is of course not what you were looking for, but still I'm eager to know what you think of it.

Collapse
 
anibalardid profile image
Anibal

thanks for your comment !

Python is not available as "stock" in all environments. But also is a good alternative ;)

Besides it could be done with php or with npm, but how I said, we use php from a docker and commits are done outsite docker.