Community
Participate
Working Groups
I suggest to remove the task status from the Mylyn commit message so that that get: bug xxxxxxx - messages instead of New - bug xxxxxxx - messages [Minor feature request: can you capitalize the b? -> Bug xxxxxxx - messages]
The regular Team template is: ${task.status} - ${connector.task.prefix} ${task.key}: ${task.description} ${task.url} Just deleting ${task.status} removes the status prefix.
http://waynebeaton.wordpress.com/2013/11/05/mylyn-egit-and-your-commit-message/ is a pretty good candidate for a new default. [${task.key}] ${task.description} Bug: ${task.url}
(In reply to comment #2) > http://waynebeaton.wordpress.com/2013/11/05/mylyn-egit-and-your-commit-message/ > is a pretty good candidate for a new default. > > [${task.key}] ${task.description} > > Bug: ${task.url} At Tasktop, many of us have standardized around a very similar template, replacing Bug: with Task-Url: as so: ${task.key}: ${task.description} Task-Url: ${task.url} Would this be an acceptable new default?
(In reply to Leo Dos Santos from comment #3) > Task-Url: ${task.url} > > Would this be an acceptable new default? At eclipse.org the terminology has always been "bug" rather than "task".
+1 for the new template proposed in comment 3.
"bug" is valid only for bugzilla, the new default should work for all possible connectors. That makes "task" a better replacement. Would something like this work? ${task.key}: ${task.description} ${connector.task.prefix}-Url: ${task.url}
The task prefix isn't necessarily capitalized and connectors may set that to arbitrary values so I'd rather not put that into the template. I'm also not sure how well that works for repositories that have multiple task types such as Defects, Stories, Epics etc. I find "Task" a reasonably generic term that is suitable as a default. It's easy enough to customize the template for specific environments.
I agree that we have an investment in the word "Bug", but I agree that it's probably not appropriate. We misuse "Bug" to include lots of things that aren't bugs. I can't think of anything better than "Task", other than maybe "Ticket" or "Issue". I've never been particularly fond of "Ticket" either. If we're going to go with "Task:" in the default template, we should consider changing the recommendation in the contribution guide. https://wiki.eclipse.org/Development_Resources/Contributing_via_Git Whatever we decide, any automated tools we build in the future to harvest this information are going to have to look for a lot of different patterns anyway, so adding one more isn't going to be a big deal...
Each repository that Mylyn integrates with likes to use its own terminology to identify its issues (Issue, Bug, Defect, Ticket, etc.), and it doesn't make sense to favour one over the other. Over the last few years Mylyn has converged on the use of Task as a catch-all to refer to any issue type, so I think it makes sense to have that consistency in the commit template.
For review: https://git.eclipse.org/r/#/c/21963/
The change was merged. The default commit template has been changed to bc.. ${task.key}: ${task.description} Task-Url: ${task.url}