Closed jayp822 closed 2 weeks ago
I thought the pre-commit stuff was already set up via Husky but it turns out I mistakenly added the .husky
directory to our ignores when getting things set up.
If you'd prefer to stick with your approach, note that contributors will need to set up the hook themselves by either configuring core.hooksPath
or symlinking $GIT_DIR/hooks/
to .githooks/
.
The precommit file addition allows for formatting and linting to be performed and checked before all commits so a contributor does not push a branch that does not adhere to the CI/CD.
The pr template file helps to standardize all pull requests so there is a template generated each time someone create a pr that tells the author to add information about the pr.