mstrap / bugtraq

Specification for linking Git with issue trackers
43 stars 15 forks source link

Java reference implementation #6

Closed gitblit closed 10 years ago

gitblit commented 10 years ago

I have another proposal for you: share your Java reference implementation.

It seems silly for both of us to code up 2 implementations of the same thing for the same language. I'm assuming you have a class that takes a commit message and a StoredConfig instance and works it's magic.

mstrap commented 10 years ago

That definitely makes sense. It requires some refactorings to get rid of SmartGit's infrastructure usage, though. I think you may expect my commit during the next week.

gitblit commented 10 years ago

Sweet. That'll be a help. BTW, if SmartGit fails to parse .gitbugtraq, the UI remains in a disabled state for almost everything.

gitblit commented 10 years ago

It also appears as though SmartGit will only process 1 bugtraq definition. I think it needs to support as many as are defined. For example, using JIRA and Gerrit together.

I actually want to define 3, for my Gitblit repository: issue (GoogleCode), pull request (GitHub), change-id (Gitblit/Gerrit). I know that Wikimedia - which runs Gerrit & Gitblit - would also want support for at least 2.

mstrap commented 10 years ago

That's true: currently SmartGit will stop processing bugtraq configurations for one message, once it has found a matching configuration. This simplification helps to avoid possibly overlapping links from different configurations. Anyway, I see that the main use case is to exactly support multiple links in one message, so I'll fix that in SmartGit.

gitblit commented 10 years ago

Super! I think that will make adopters happy.

mstrap commented 10 years ago

The reference implementation now also processes multiple configurations for one commit message.

gitblit commented 10 years ago

Cool. I've cloned and I'll integrate later this week - might be over the weekend due to the Thanksgiving holiday.