PR: use config project git branch, not default
This commit is contained in:
@@ -102,7 +102,7 @@ func (pr *PRProcessor) CreateOrUpdatePrjGitPR(prOrg, prRepo string, prNo int, pr
|
|||||||
config := pr.config
|
config := pr.config
|
||||||
git := pr.git
|
git := pr.git
|
||||||
|
|
||||||
org, prj, _ := config.GetPrjGit()
|
org, prj, branch := config.GetPrjGit()
|
||||||
|
|
||||||
branchName := prGitBranchNameForPR(prRepo, prNo)
|
branchName := prGitBranchNameForPR(prRepo, prNo)
|
||||||
|
|
||||||
@@ -150,7 +150,7 @@ referencing
|
|||||||
common.PanicOnError(git.GitExec(common.DefaultGitPrj, "push", remoteName, "+HEAD:"+branchName))
|
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("Forwarded PR: %s", prRepo),
|
||||||
fmt.Sprintf(`This is a forwarded pull request by %s
|
fmt.Sprintf(`This is a forwarded pull request by %s
|
||||||
referencing the following pull request:
|
referencing the following pull request:
|
||||||
|
|||||||
Reference in New Issue
Block a user