Closed ThijsTyZ closed 3 years ago
Regarding prefixing the commits, I would say it's only reliable if we can automate it. Even trying my best to pay attention to this I still made commits with the wrong number every now and then. If this is a manual process it will happen.
Also consider using a linter for the commit messages: https://commitlint.io/
how to: https://remarkablemark.org/blog/2019/05/29/git-husky-commitlint/
When sharing info between issues and code, I like to do the following:
feature/OF-938-name-of-the-ticket
)OF-938 Implement feature abc
)The branch name is useful for integrations, and helps with autocomplete.
The issue key is useful if you look at the commit log (which mostly only shows the first line)