Search in sources :

Example 1 with SVNChangeLogRevision

use of net.nemerosa.ontrack.extension.svn.model.SVNChangeLogRevision in project ontrack by nemerosa.

the class SVNServiceUtils method createChangeLogRevision.

public static SVNChangeLogRevision createChangeLogRevision(SVNRepository repository, String path, int level, long revision, String message, String author, LocalDateTime revisionDate) {
    // Issue service
    ConfiguredIssueService configuredIssueService = repository.getConfiguredIssueService();
    // Formatted message
    String formattedMessage;
    if (configuredIssueService != null) {
        formattedMessage = configuredIssueService.formatIssuesInMessage(message);
    } else {
        formattedMessage = message;
    }
    // Revision URL
    String revisionUrl = repository.getRevisionBrowsingURL(revision);
    // OK
    return new SVNChangeLogRevision(path, level, revision, author, revisionDate, message, revisionUrl, formattedMessage);
}
Also used : ConfiguredIssueService(net.nemerosa.ontrack.extension.issues.model.ConfiguredIssueService) SVNChangeLogRevision(net.nemerosa.ontrack.extension.svn.model.SVNChangeLogRevision)

Aggregations

ConfiguredIssueService (net.nemerosa.ontrack.extension.issues.model.ConfiguredIssueService)1 SVNChangeLogRevision (net.nemerosa.ontrack.extension.svn.model.SVNChangeLogRevision)1