Skip to content

Commit 6073566

Browse files
author
Pawel Salkiewicz
committed
Added support for slashes in bitbucket project name
1 parent e1ae416 commit 6073566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/events/models/models.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func NewRepo(vcsHostType VCSHostType, repoFullName string, cloneURL string, vcsU
125125
}
126126
// Only GitLab and AzureDevops repos can have /'s in their owners.
127127
// This is for GitLab subgroups and Azure DevOps Team Projects.
128-
if strings.Contains(owner, "/") && vcsHostType != Gitlab && vcsHostType != AzureDevops {
128+
if strings.Contains(owner, "/") && vcsHostType != Gitlab && vcsHostType != AzureDevops && vcsHostType != BitbucketServer {
129129
return Repo{}, fmt.Errorf("invalid repo format %q, owner %q should not contain any /'s", repoFullName, owner)
130130
}
131131
if strings.Contains(repo, "/") {

0 commit comments

Comments
 (0)