git - Jira Smart 提交未运行的命令

标签 git github jira smart-commits

我的 Jira 智能提交由 Jira Ticket 正确跟踪

Proving the linkage of my commits to my Jira Ticket

但是我的命令没有被执行。我试图通过 Jira Smart Commits 执行的示例提交:

$ git commit -m "Foo-2 Fake commit 我将任务从 Backlog 移至 In Progress #time 1h $in-progress"

我已阅读此处列出的所有文档:

https://confluence.atlassian.com/bitbucket/use-smart-commits-298979931.html

注意,上面的链接可能需要 atlassian 登录。由于我会立即回答我自己的问题,因此为了完成起见,我提供了上面的链接。

最佳答案

这花费的时间比我愿意承认的要长。这个链接在这里:

https://community.atlassian.com/t5/Jira-Core-questions/Smart-commit-not-working/qaq-p/387358

准确描述了我遇到的问题。引用重要文本以确保完整性:

...if there is no email in the commit matching any jira user it won't work (gets rejected).

我收到了 Jira 的无声拒绝,因为通过运行 $ git config --global user.email 可以看到我 Github 帐户上的电子邮件匹配我的 Jira 帐户上的电子邮件地址。

这个问题的沉默让我受益,正如您在上面看到的,我能够将提交归因于特定的 Jira 任务而无需具有匹配的电子邮件地址。

我希望这至少能让一个人免于头痛和困惑。

关于git - Jira Smart 提交未运行的命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55130961/

相关文章:

git - 可以告诉 git 存储库使用工作副本作为基础数据吗?

git:未更新

ruby-on-rails - 命令结束时显示 Errno : :EEXIST Message

Git 日志显示 HEAD 指向的确切位置?

git - 重新启动 pull 请求,其中一些文件自原始以来未曾更改

python - 以编程方式从 jira 和 Fisheye 创建融合内容

git - Azure cli 存储库导入失败,操作返回 400 状态代码

git - github 分支与我推送的差异

java - JIRA升级需要下载哪个jar?

Excel 链接到 JIRA 问题,强制重新身份验证