-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: Startup script + local git hooks #24
base: main
Are you sure you want to change the base?
Conversation
…o include the startup script
Please run |
Adding a script to install git hooks makes sense 👍 The commit check from the bash script doesn't respect the conventionnal commit convention as defined in the how about running That way you need to rewrite the commit message check itself. |
"startup" might be a bit misleading, as the script doesn't startup the application. What do you think of separated concerns and explicit names ./setup-git-hooks.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can merge the commit message check as is. I'm just adding this comment for starting a review for renaming bash scripts.
Quick direct answers:
Agreed. I did that on my computer before seeing your reviewed changes so I'm shipping them from my commit.
I would do that for almost any other language, but I'm not really on this boat for a shell script that is this short.
I don't like the idea of having "advanced" tools within a commit hook. Lengthy reasoningThe goal is to have a script that runs on any computer with the lowest amount of tools and the lowest amount of additional steps if doesn't work out.
So I'm losely against the separation of concern, you can change my mind easily tho, especially because i'm not versed in shell scripts. And in any case, I will add documentation in the script to make it easy to navigate. I'm really against running any other tool within the hooks because it makes commits reliant on the accessibility of the tool. An alternative would be to generate the commit hooks from the yaml so they stay in sync whilst not using anything when in use. |
I agree with you on using bash scripts over nodejs tooling. Separating scripts is mostly for reusability, the ./check-tooling-version.sh could be used to enforce versions for actions and prod env, and container build context too. |
Added a small startup script in bash that currently does two things: