简体   繁体   English

Git集成到bug跟踪:它可以跟踪合并吗?

[英]Git integration to bugtracking: can it track merges?

I'm looking at the various bugtracking(bt) systems that have git backends, and they all seem to rely on adding a bt-specific tag to the commit message, as a way to determine which bug to map the commit to. 我正在查看具有git后端的各种bugtracking(bt)系统,它们似乎都依赖于在提交消息中添加特定于bt的标记,以此来确定将提交映射到哪个bug。

Given that git retains the commit history when merges/pulls/cherry-picks are done, all of those commits (that might come from outside parties such as upstream) will not have any bt-specific tag in them, and thus will not show up in the bugtracking system. 鉴于git在完成合并/拉动/樱桃签操作时保留了提交历史记录,因此所有这些提交(可能来自外部方,例如上游)都将没有任何特定于bt的标记,因此不会显示在错误跟踪系统中。 Which in my view seems to make it useless for any git project other than ones fully developed by the same person/team/organization (which would then always add the bt-specific tag to the commit messages). 在我看来,除了由同一个人/团队/组织完全开发的git项目之外,这似乎使它对任何git项目都没有用(然后,该项目将始终在提交消息中添加特定于bt的标记)。

Am I missing something here? 我在这里想念什么吗? Is there a way that these git-to-bt integrations work that can also capture outside commits coming in through merges? 这些git-to-bt集成是否有办法捕获通过合并而来的外部提交? I've looked through the descriptions of various bugtracking systems (redmine, trac, jira, etc...) and I can't find any documentation that would indicate how they work with this (they usually have single commit examples in the docs only). 我已经浏览了各种bug跟踪系统(redmine,trac,jira等)的描述,但找不到任何可以表明它们如何工作的文档(它们通常在docs中只有一个commit示例) )。

The only thing I can think of is that you can merge in the upstream branch, but tell git not to commit the merge results with --no-commit and then git commit to add your bug-tracker reference. 我唯一能想到的是您可以在上游分支中合并,但是告诉git不要使用--no-commit合并结果,然后告诉git commit添加您的错误跟踪器引用。 Otherwise I don't know how a bug tracker can be smart enough to know how to map bug numbers to commit IDs. 否则,我不知道错误跟踪器如何足够聪明,知道如何将错误号映射到提交ID。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM