使用 Git 集成设置错误跟踪器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/40495/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 05:44:34  来源:igfitidea点击:

Bug tracker setup with Git integration?

gitintegrationversion-controlbug-tracking

提问by Jordi Bunster

I know I can do most of this by hacking Trac and using Git hooks, but I was wondering if someone has / knows of something ready.

我知道我可以通过破解 Trac 和使用 Git 钩子来完成大部分工作,但我想知道是否有人已经/知道准备好了什么。

Commenting on (and closing) tickets from commit messages would be nice, specially if the diff appears inline with the comment/closing remark.

从提交消息中评论(和关闭)票会很好,特别是如果差异出现在评论/结束评论中。

sha1 hashes should be auto-linked to gitweb/cigt/custom git browser.

sha1 哈希值应该自动链接到 gitweb/cigt/自定义 git 浏览器。

I tried the GitPlugin for Trac, but the code browser was soo slow... any alternatives?

我为 Trac 尝试了 GitPlugin,但是代码浏览器太慢了……还有其他选择吗?

采纳答案by JW.

Redminecan do some of what you're asking for. Integration works in one direction, you must reference issues in commit messages, and then this data will be available in redmine.

Redmine可以做一些你要求的事情。集成在一个方向上起作用,您必须在提交消息中引用问题,然后这些数据将在 redmine 中可用。

The data is then available in two views. The bug display will include a list of matched commits. The repository display will link commits to bug display pages.

数据随后可在两个视图中使用。错误显示将包括匹配提交的列表。存储库显示会将提交链接到错误显示页面。

Redmine keeps a local (bare) repository for each project. This can be the primary repo or a remote mirror. On updates, redmine parses the commit messages and updates an internal cross reference table of change_set,issue.

Redmine 为每个项目保留一个本地(裸)存储库。这可以是主存储库或远程镜像。在更新时,redmine 解析提交消息并更新 change_set,issue 的内部交叉引用表。

If the redmine repository is only used as a mirror, it will need to be updated. Updates can happen via cron or via external hook. We use a redmine github pluginand a github post-receive hook to keep redmine in sync with a primary github repository.

如果 redmine 存储库仅用作镜像,则需要对其进行更新。更新可以通过 cron 或外部钩子发生。我们使用redmine github 插件和 github post-receive hook 来保持 redmine 与主要 github 存储库同步。

It works, but it is still a bit clumsy.

它有效,但它仍然有点笨拙。

回答by Robert Munteanu

Mantishas a good Git integration, and it's exercised by the developers themselves, as the development is driven by Git.

Mantis具有良好的 Git 集成,由开发人员自己操作,因为开发是由 Git 驱动的。

This is how changesets attached to an issue will appear:

这是附加到问题的变更集的显示方式:

Changeset attached to an issue

附加到问题的变更集

You can find more documentation at Integrating Git and SVN with the Mantis Bug Tracker.

您可以在将 Git 和 SVN 与 Mantis Bug Tracker 集成 中找到更多文档。

回答by Gera

There's also GitZilla(I'm the author).

还有GitZilla(我是作者)。

回答by Gera

Yeah, I have been looking for something similar! there is no documentation on redmine but the only feature that I am aware is that if you append a dash (#) and a issue number you get a link to that issue.

是的,我一直在寻找类似的东西!没有关于 redmine 的文档,但我知道的唯一功能是,如果您附加一个破折号 (#) 和一个问题编号,您将获得该问题的链接。

For example:

例如:

$ git commit -a -m '#45 makes earth rotate in reverse!'

$ git commit -a -m '#45 使地球反向旋转!'

would be on visible on the repository and the number will link to the issue #45!

将在存储库中可见,并且该编号将链接到问题 #45!

I really want to make it so if a commit is liked to a specific issue the commit-message gets appended to the issue.

我真的很想这样做,如果提交喜欢特定问题,则提交消息会附加到问题中。

and yes, close, fixed and stuff like that would be great!

是的,关闭,固定和类似的东西会很棒!

I've been browsing for such (git-hooks) or features in redmine for a while but not much luck! (their documentation sucks!)

我一直在浏览 redmine 中的此类(git-hooks)或功能,但运气不佳!(他们的文档很烂!)

somebody post some updates on this topic!

有人发布了有关此主题的一些更新!

回答by Andreas Rehm

trac has a git plugin - it works like the svn version...

trac 有一个 git 插件 - 它的工作原理类似于 svn 版本......

http://trac-hacks.org/wiki/TracGitPlugin

http://trac-hacks.org/wiki/TracGitPlugin

回答by Corey Trager

BugTracker.NETis a web-based bug trackingsystem that has git integration. The web pages for the git integration look pretty much like the ones for the subversion integration, documented here.

BugTracker.NET是一个基于 Web 的错误跟踪系统,它具有 git 集成。git 集成的网页看起来很像 subversion 集成的网页,记录在这里

You can read more about the philosophy that guided BugTracker.NET/Git integration in this Stackoverflow question: How does bug tracker/version control integration work with typical git workflows?

你可以在这个 Stackoverflow 问题中阅读更多关于指导 BugTracker.NET/Git 集成的哲学:bug 跟踪器/版本控制集成如何与典型的 git 工作流一起工作?

See also this question: https://stackoverflow.com/questions/229303/are-there-any-good-issue-tracking-systems-that-can-track-git-commits-branches

另见这个问题:https: //stackoverflow.com/questions/229303/are-there-any-good-issue-tracking-systems-that-c​​an-track-git-commits-branches

回答by Adclone

https://bitbucket.org- technically it's a DVCS service, but it has fully integrated issue tracking. And it's services are really free for small teams (and unlimited free service for .edu people too).

https://bitbucket.org- 从技术上讲,它是 DVCS 服务,但它已完全集成问题跟踪。而且它的服务对小团队来说真的是免费的(对于 .edu 的人也是无限的免费服务)。

回答by Arioch 'The

There is sdorra scm-manager tool, integrating Git and Jira

有sdorra scm-manager工具,集成了Git和Jira

TrackStudio, since version 4, also has Git integration

TrackStudio,从第 4 版开始,也有 Git 集成

回答by Titas

Assemblaoffers a free git repository that is private and an integrated bug tracking system - you can change ticket statuses or track time directly through your commit messages. They also offer custom server-side hooks - which allow you to write your own logic and then use it - anything from rejecting commits that do not match certain rules of yours, to starting a CI build after a commit is received.

Assembla提供了一个免费的私有 git 存储库和一个集成的错误跟踪系统 - 您可以直接通过提交消息更改工单状态或跟踪时间。他们还提供自定义的服务器端挂钩——允许你编写自己的逻辑然后使用它——从拒绝与你的某些规则不匹配的提交到在收到提交后启动 CI 构建。

回答by Titas

Check out this link here. It provides a tutorial on how Git can be used to integrate with Rational Team Concert. It will give some basic information which can be used to integrate Git with a wide range of other products.

在此处查看此链接。它提供了一个关于如何使用 Git 与 Rational Team Concert 集成的教程。它将提供一些基本信息,可用于将 Git 与各种其他产品集成。