This commit is contained in:
Adam Majer 2024-07-15 20:48:14 +02:00
parent fb8e5d5e03
commit 62abc9fc75

View File

@ -52,6 +52,12 @@ func processPullRequestSync(h *common.RequestHandler) error {
// is still pointing to the HEAD of the PR
prjPr := h.GetAssociatedPrjGitPR(req)
if h.HasError() {
h.LogError("%v", h.Error)
return h.Error
}
h.Log("associated pr: %v", prjPr)
h.GitExec("", "clone", "--branch", prjPr.Head.Name, "--depth", "1", prjPr.Head.Repo.SSHURL, common.DefaultGitPrj)
commitId, ok := h.GitSubmoduleCommitId(common.DefaultGitPrj, req.Repository.Name, prjPr.Head.Ref)