Question

I'm looking for a specification or guidelines on how a Git client should integrate with bug tracking systems. For SVN, there are bugtraq:-properties. Is there something similar for Git?

Was it helpful?

Solution

As it seems that there currently is no such specification, I got that started:

https://github.com/mstrap/bugtraq

OTHER TIPS

You can put this in your /.git/config file to work with TortoiseGit:

[bugtraq]
    url = http://jira.com:8080/browse/
    number = false
    warnifnoissue = true
    message = http://jira.com:8080/browse/%BUGID%
    label = Issue number
    append = false

One way would be to use git notes (which I detail here), in order to store on top of any regular commit a 'bugtrag' note (in a notes/bugtraq namespace for instance).

That would allow an integration without rewriting the git repo history of commits already present.

integration of bug trackers with git usually works by parsing the git commit messages in the bug tracker.

i.e. you mention "fixes #1234" or "relates #1332" in your message and the bug tracker establishes the connection.

There's seldom a question that has not been asked before. There already is a popular standard for project information like the link to a bugtracker and much more: https://en.wikipedia.org/wiki/DOAP (Description of a Project)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top