hagopj13 / node-express-boilerplate

A boilerplate for building production-ready RESTful APIs using Node.js, Express, and Mongoose
MIT License
6.99k stars 2.05k forks source link

Can we add commit message lint? #255

Open chintanshahts opened 1 year ago

chintanshahts commented 1 year ago

Full reference : https://github.com/conventional-changelog/commitlint

commitlint checks if your commit messages meet the conventional commit format.

In general the pattern mostly looks like this:

type(scope?): subject  #scope is optional; multiple scopes are supported (current delimiter options: "/", "\" and ",")

Real world examples can look like this:

  1. chore: run tests on travis ci
  2. fix(server): send cors headers
  3. feat(blog): add comment section

Common types according to commitlint-config-conventional (based on the Angular convention) can be: