【问题标题】:How to specify version with git smart commits?如何使用 git 智能提交指定版本?
【发布时间】:2015-03-19 08:15:00
【问题描述】:

我正在使用 BitBucket 和 Attlasian Jira。它们相互关联,因此我只需使用 git 注释即可解决问题:

 git commit -m "BUG-123 #resolve #comment My comment"

我的问题是。是否可以使用智能提交功能指定修复版本?

【问题讨论】:

  • 在版本号最终确定之前你怎么知道修复版本?
  • 例如我正在阻止发布版本。我决定下一个版本是 x23.1。我想通过指向此版本的链接提交我的更改。不要手动选择它。谢谢

标签: git jira bitbucket smart-commits


【解决方案1】:

根据JIRA DVCS plugin API documentation,可以使用三个命令:

#time
#comment
#<transition>

没有用于选择修复版本的直接命令,但您可能会在 JIRA 系统中设置触发器或挂钩,以便在转换时为您选择修复版本,但无法使用定义的智能提交命令。

【讨论】:

  • 您的链接已损坏。
  • @JosephLeedy 已修复。
猜你喜欢
  • 2018-06-21
  • 2015-08-14
  • 1970-01-01
  • 2018-01-06
  • 2022-12-16
  • 1970-01-01
  • 2016-08-22
  • 2019-07-27
  • 2012-03-10
相关资源
最近更新 更多