This commit is contained in:
Adam Majer 2024-07-10 00:01:33 +02:00
parent d155921ab3
commit 5b12309f26

View File

@ -51,6 +51,7 @@ func (h *RequestHandler) parsePullRequest(data io.ReadCloser) *PullRequestAction
repoIdx := strings.LastIndex(action.Repository.Ssh_Url, "/") repoIdx := strings.LastIndex(action.Repository.Ssh_Url, "/")
if repoIdx == -1 || action.Repository.Ssh_Url[repoIdx+1:] != action.Repository.Name+".git" { if repoIdx == -1 || action.Repository.Ssh_Url[repoIdx+1:] != action.Repository.Name+".git" {
h.LogError("Unexpected URL for SSH repository: '%s'", action.Repository.Name) h.LogError("Unexpected URL for SSH repository: '%s'", action.Repository.Name)
h.LogError("%#v", action)
return nil return nil
} }
h.PrjGit = action.Repository.Ssh_Url[:repoIdx+1] + DefaultGitPrj + ".git" h.PrjGit = action.Repository.Ssh_Url[:repoIdx+1] + DefaultGitPrj + ".git"