gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/ChangeIdAnnotator.java
/**
     * Annotates Gerrit change IDs in changelogs.
     * @param project The project
     * @param text The initial text
     * @param config The Gerrit trigger config
     */
Annotates Gerrit change IDs in changelogs.
@param project The project
@param text The initial text
@param config The Gerrit trigger config
Annotates Gerrit change IDs in changelogs . @param project The project @param text The initial text @param config The Gerrit trigger config
public void annotate(AbstractProject<?, ?> project, MarkupText text, IGerritHudsonTriggerConfig config) {
        for (SubText token : text.findTokens(CHANGE_ID)) {
            if (!hasGerritTrigger(project)) {
                return; 
            }
            token.href(config.getGerritFrontEndUrl() + "r/" + token.getText());
        }
    }
public void annotate ( AbstractProject < ? , ? > project , MarkupText text , IGerritHudsonTriggerConfig config ) { for ( SubText token : text . findTokens ( CHANGE_ID ) ) { if ( ! hasGerritTrigger ( project ) ) { return ; } token . href ( config . getGerritFrontEndUrl ( ) + "r/" + token . getText ( ) ) ; } }
Annotates Gerrit change IDs in changelogs.
Annotates Gerrit change IDs in changelogs .
// not configured with Gerrit