Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 239376

Summary: Enabling the Bugzilla hyperlink detector to work with EMF commit comment style.
Product: z_Archived Reporter: Marcelo Paternostro <marcelop>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P4 CC: eclipse, mik.kersten, robert.elves, steffen.pingel
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Marcelo Paternostro CLA 2008-07-02 18:53:17 EDT
For more than 4 years now, we've been using the following commit comment convention in (at least) both the EMF and XSD projects: [123456] Comment.  '123456' is the bugzilla number and 'Comment' is a text that describes what has been done to a file or how the bugzilla was fixed/implemented.  In other words, usually 'Comment' is not the bugzilla description.

Would it be possible to change the "Bugzilla hyperlink detector" to support this pattern?

This is the newsgroup post where this feature was first discussed:
http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.mylyn/msg01085.html

An extra bit: sometimes a given fix applies to more than one bugzilla.  In this case, after typing the comment related to the first bugzilla, we add a line break and enter a new bug comment (ie, [123457] Comment2). Would this scenario be supported?
Comment 1 Steffen Pingel CLA 2008-07-02 21:38:17 EDT
The news post also points out that "Open Corresponding Task" fails to open the task based on the commit comment although the template is set to this:

 '[${task.key}] ${task.description}'

This seems to be a bug and should be investigated.

In a second step I think it could make sense to extend the Bugzilla hyperlink detector to match numbers or numbers in brackets. The downside of this would be that since the hyperlink detector is enabled for any textual editor it might match a lot of things that are not actually references to bugs. The Trac hyperlink detector had a similar problem where the matching of Trac wiki links interfered with Python syntax and it had to be separated into a second hyperlink detector that is only enabled for task editors. We could do the same for Bugzilla or alternatively contribute an "Extended Tasks" detector that is only active in certain contexts.
Comment 2 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn