private void addGitServiceUrl(Map<String, String> annotations, String repoName, String gitCommitId) {
        String username = getGitUserName();
        // this requires online access to kubernetes so we should silently fail if no connection
        String gogsUrl = getExternalServiceURL(getConfig(Config.gitService), "http");
        String rootGitUrl = String.format("%s/%s/%s",gogsUrl, username, repoName);
        rootGitUrl = String.format("%s/%s/%s",rootGitUrl, "commit", gitCommitId);
        if (StringUtils.isNotBlank(rootGitUrl)) {
            annotations.put(Fabric8Annotations.GIT_URL.value(), rootGitUrl);
        }
    }
private void addGitServiceUrl(Map<String, String> annotations, String repoName, String gitCommitId) {
        String username = getGitUserName();
        
        String gogsUrl = getExternalServiceURL(getConfig(Config.gitService), "http");
        String rootGitUrl = String.format("%s/%s/%s",gogsUrl, username, repoName);
        rootGitUrl = String.format("%s/%s/%s",rootGitUrl, "commit", gitCommitId);
        if (StringUtils.isNotBlank(rootGitUrl)) {
            annotations.put(Fabric8Annotations.GIT_URL.value(), rootGitUrl);
        }
    }
private void addGitServiceUrl ( Map < String , String > annotations , String repoName , String gitCommitId ) { String username = getGitUserName ( ) ; // this requires online access to kubernetes so we should silently fail if no connection String gogsUrl = getExternalServiceURL ( getConfig ( Config . gitService ) , "http" ) ; String rootGitUrl = String . format ( "%s/%s/%s" , gogsUrl , username , repoName ) ; rootGitUrl = String . format ( "%s/%s/%s" , rootGitUrl , "commit" , gitCommitId ) ; if ( StringUtils . isNotBlank ( rootGitUrl ) ) { annotations . put ( Fabric8Annotations . GIT_URL . value ( ) , rootGitUrl ) ; } }
=================================
=================================