Jira issue number in git commit message

前端 未结 6 1146
生来不讨喜
生来不讨喜 2020-12-28 13:54

At our company we are moving from svn to git. For issue tracking we use JIRA from Atlassian.

Now we want to enforce that every commit message contains an issue numbe

6条回答
  •  感动是毒
    2020-12-28 14:35

    Git hook is not copied when a repository is cloned. We recommend using husky. This can help in publishing git hooks to everyone who clones the repo.

    To mandate git commit to include a jira id reference. I have configured that in a repo - husky-jira-demo. Hope this can address your requirement.

提交回复
热议问题