DEV Community

Discussion on: Making git commit messages useful with Jira, Jenkins and scopes

Collapse
 
defman profile image
Sergey Kislyakov • Edited

I find conventional commits a bit better. We have applied this approach in our team and it's much easier to understand what's going on it the codebase just by reading commits. It also helps a bit when we're preparing a plan for demonstrating our changes to other teams (along with the issues).

<type>(<scope>): <subject>

<body>

<footer>
Enter fullscreen mode Exit fullscreen mode

Your JIRA/GitHub/GitLab/etc. issue would be in the footer section maybe with an automating tag (Fix/Close).

Collapse
 
luchfilip profile image
Filip Luchianenco

Thank you for your input Defman. We actually tried to follow exactly this format initially, but then we felt like the ticket number is something we use a lot on all levels, so we need it up there. Using the ticket, type, and scope leaves so little space for the subject, so we had to take something out, which was the type.