PR: use config project git branch, not default

This commit is contained in:
2025-06-13 00:06:02 +02:00
parent e92ac4a592
commit 3928fa6429

View File

@@ -102,7 +102,7 @@ func (pr *PRProcessor) CreateOrUpdatePrjGitPR(prOrg, prRepo string, prNo int, pr
config := pr.config
git := pr.git
org, prj, _ := config.GetPrjGit()
org, prj, branch := config.GetPrjGit()
branchName := prGitBranchNameForPR(prRepo, prNo)
@@ -150,7 +150,7 @@ referencing
common.PanicOnError(git.GitExec(common.DefaultGitPrj, "push", remoteName, "+HEAD:"+branchName))
}
_, err = Gitea.CreatePullRequestIfNotExist(prjGit, branchName, prjGit.DefaultBranch,
_, err = Gitea.CreatePullRequestIfNotExist(prjGit, branchName, branch,
fmt.Sprintf("Forwarded PR: %s", prRepo),
fmt.Sprintf(`This is a forwarded pull request by %s
referencing the following pull request: