Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1
-
Fix Version/s: 2.2
-
Labels:None
-
Number of attachments :
Description
Eclipse Mylyn, plus other good behaviours (see JIRA Commit Acceptance Plugin) make it necessary to quote a task upon check-in. These task IDs can easily be mapped to URLs using simple regex pattern rules that can be defined in the plugin config.
Patch provides two new options:
/** * A pattern used to identify 'issue tracker' IDs such as those used by JIRA, * Bugzilla and alike in the SCM commit messages. Any matched patterns * are replaced with <code>ticketLinkUrl<code> URL. The default * value is a JIRA-style ticket identification pattern. * * @parameter expression="${ticketLinkRegexPattern}" default-value="[a-zA-Z]{2,}-\d+" * @required */ private String ticketLinkRegexPattern; /** * The issue tracker URL used in replacing any matched <code>ticketLinkRegexPattern</code> * found in the SCM commit messages. The default is URL is the codehaus JIRA * URL. If %TICKET% if found in the URL it is replaced with the matched ticket ID, * otherwise the matched ticket ID is appended to the URL. * * @parameter expression="${ticketLinkUrl}" default-value="http://jira.codehaus.org/browse/%TICKET%" * @required */ private String ticketLinkUrl;Which, if defined, will replace any matching 'ticket identifiers' found in the commit messages with links to the ticket system based on the 'ticketLinkUrl' template string.
Patch generated against trunk, revision 560535.
Combined patch for
MCHANGELOG-70,MCHANGELOG-71andMCHANGELOG-72to follow.