vue-storefront-1
vue-storefront-1 copied to clipboard
Integrate conventional commits with commitlint
What is the motivation for adding / enhancing this feature?
When I checked commits, everyone writes them in a different way. Conventional commits help keep them simple, short and in the same format. This convention speed up understands what kind of changes have been done. To validate commit messages I suggest using Git pre-commit hook.
Conventional commits spec: https://www.conventionalcommits.org/en/v1.0.0-beta.4/
Example commit message: feat: commitlint integration
This package is well known and helpful: https://www.npmjs.com/package/commitlint
But I'm open to suggestions.
What are the acceptance criteria
- [ ] Integrated and configured the commitlint
- [ ] Developer is not able to commit an invalid message
Can you complete this feature request by yourself?
- [x] YES
- [ ] NO
Which Release Cycle state this refers to? Info for developer.
Pick one option.
- [x] This is a normal feature request. This should be available on https://test.storefrontcloud.io and then after tests this can be added to next Vue Storefront version. In this case Developer should create branch from
developbranch and create Pull Request2. Feature / Improvementback todevelop. - [ ] (Pick this option only if you're sure) This is an important improvement request for current Release Candidate version on https://next.storefrontcloud.io and should be placed in next RC version. In this case Developer should create branch from
releasebranch and create Pull Request3. Stabilisation fixback torelease. - [ ] (Pick this option only if you're sure) This is a critical improvement request for current Stable version on https://demo.storefrontcloud.io and should be placed in next stable version. In this case Developer should create branch from
hotfixormasterbranch and create Pull Request4. Hotfixback tohotfix.
Additional information
Great idea :+1:
@filrak @patzick @pkarw @sandermangel What do you guys think?
I like the idea 👍
I really like this idea, needs to be well documented in our docs and also strictly watched by us. But surely this would improve commit messages and also users would not have to update changelog every time ;)