You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Allen (JIRA)" <ji...@codehaus.org> on 2007/07/28 16:11:13 UTC

[jira] Updated: (MCHANGELOG-70) Support a URL filter that enables JIRA/bugzilla/whatever IDs quoted in SCM message to be mapped to real URLs

     [ http://jira.codehaus.org/browse/MCHANGELOG-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Allen updated MCHANGELOG-70:
---------------------------------

    Attachment: MCHANGELOG-70.patch

Patch provides two new options:

{code}
    /**
     * 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;
{code}

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-71 and MCHANGELOG-72 to follow.

> Support a URL filter that enables JIRA/bugzilla/whatever IDs quoted in SCM message to be mapped to real URLs
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: MCHANGELOG-70
>                 URL: http://jira.codehaus.org/browse/MCHANGELOG-70
>             Project: Maven 2.x Changelog Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1
>            Reporter: John Allen
>         Attachments: MCHANGELOG-70.patch
>
>
> Eclipse Mylyn, plus other good behaviours (see [JIRA Commit Acceptance Plugin|http://confluence.atlassian.com/display/JIRAEXT/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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira