Append ticket number using git commit hooks?

前端 未结 6 1621
[愿得一人]
[愿得一人] 2020-12-24 02:21

So my branch is named after bugtracker ticket number, something like \"issue-1234\", and we have a convention to always write down ticket number in commit message. I\'m wond

6条回答
  •  春和景丽
    2020-12-24 03:04

    Another option would be to use git notes to add the ticket number information to the commit, using one of the hooks you mention.
    (See "Notes to self" blog post entry for more on the notes mechanism)

提交回复
热议问题