diff --git a/src/main/groovy/de/gliderpilot/gradle/semanticrelease/GithubRepo.groovy b/src/main/groovy/de/gliderpilot/gradle/semanticrelease/GithubRepo.groovy index f244ed6..9a8bd68 100644 --- a/src/main/groovy/de/gliderpilot/gradle/semanticrelease/GithubRepo.groovy +++ b/src/main/groovy/de/gliderpilot/gradle/semanticrelease/GithubRepo.groovy @@ -86,6 +86,9 @@ class GithubRepo extends GitRepo { boolean isGithubComRepository = (repositoryUrl ==~ /.*github.com[\/:]((?:.+?)\/(?:.+?))(?:\.git)/) Matcher matcher = (repositoryUrl =~ /.+[\/:](.+?\/.+?)(?:\.git)$/) + if (!matcher) + return null + if (isGithubComRepository || this.isGhEnterprise) { return matcher.group(1) }