<p>It's shown in the examples of the <a href="/daily/2023/11/24/are-conventional-commits-worth-it">conventional commits specification</a> as part of the optional footer data.</p>
<p>But is it useful?</p>
<p>It can be if your issue tracker is linked to your Git repository and you can click the issue ID in a commit message and see the issue.</p>
<p>But, how often do teams change issue-tracking software or the project is passed to a different company that uses a different issue tracker?</p>
<p>That makes the issue IDs that reference the old IDs useless as no one has access to the issues it references.</p>
<p>I'd recommend putting as much information in the commit message itself and not relying on it being in an external source, like an issue tracker.</p>
<p>The Git log and commit messages will remain even if a different issue tracker is used, or a different team starts working on the project, and that additional information isn't lost.</p>
<p>I'm not against putting the issue ID in the commit message but don't do it instead of writing a descriptive commit message.</p>
<p>It's shown in the examples of the <a href="/daily/2023/11/24/are-conventional-commits-worth-it">conventional commits specification</a> as part of the optional footer data.</p>
<p>It can be if your issue tracker is linked to your Git repository and you can click the issue ID in a commit message and see the issue.</p>
<p>But, how often do teams change issue-tracking software or the project is passed to a different company that uses a different issue tracker?</p>
<p>That makes the issue IDs that reference the old IDs useless as no one has access to the issues it references.</p>
<p>I'd recommend putting as much information in the commit message itself and not relying on it being in an external source, like an issue tracker.</p>
<p>The Git log and commit messages will remain even if a different issue tracker is used, or a different team starts working on the project, and that additional information isn't lost.</p>
<p>I'm not against putting the issue ID in the commit message but don't do it instead of writing a descriptive commit message.</p>