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

Added hooks for auto formatting code and validating commit messages #146

Closed
wants to merge 2 commits into from

Conversation

thedroiddiv
Copy link
Collaborator

@thedroiddiv thedroiddiv commented Oct 27, 2022

Purpose/Description

pre-commit:

This hook runs prettier before any commit is made to ensure consistent code styling throughout the codebase

commit-msg:

Having a commit-msg hook ensures that every commit has a descriptive message and motive behind the commit. This improves the code-quality and someone else in future understands why that specific commit was made
Guidelines have been adopted from
https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit

Intended changes are the files

  • package.json
  • .gitmessage
  • _husky/*'

All other changes are formatting change and package-lock.json

Fixes

Fixes #143 and #135

Breaking changes: You won't be able to do commits without having commit-message following the guidelines once this is merged

Having a commit-msg hook ensures that every commit has a descriptive message and motive behind the commit. This improves the code-quality and someone else in future understands why that specific commit was made

Guidelines have been adopted from
 https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit

Breaking Changes: you won't be able to do commits without having commit-message following the guidelines once this is merged
@thedroiddiv thedroiddiv changed the title Added hooks for auto formatting code and validating commit messages. Added hooks for auto formatting code and validating commit messages Oct 27, 2022
@thedroiddiv thedroiddiv closed this Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant