Interface CommitUrlProvider

    • Method Detail

      • getWebRepositoryUrlForCommit

        @Nullable
        @Nullable String getWebRepositoryUrlForCommit​(Commit commit,
                                                      @NotNull
                                                      @NotNull RepositoryData repositoryData)
        Provide the url to link to the given commit in the web repository
        Parameters:
        commit - the commit to links to
        repositoryData - the repository type the commit came from
        Returns:
        a full url string.
      • getWebRepositoryUrlForRevision

        @Nullable
        @Nullable String getWebRepositoryUrlForRevision​(String revisionId,
                                                        @NotNull
                                                        @NotNull RepositoryData repositoryData)
        Provide the url to link to the given revision in the web repository
        Parameters:
        revisionId - the revision to links to
        repositoryData - the repository type the commit came from
        Returns:
        a full url string.
      • getWebRepositoryUrlForCommits

        Map<Commit,​String> getWebRepositoryUrlForCommits​(Collection<Commit> commits,
                                                               RepositoryData repositoryDefinition)
        Provide the urls to link all the given commits in the web repository
        Parameters:
        commits - to generate links for
        repositoryDefinition - the repository type the commit came from
        Returns:
        a map of the commit to its url.