1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-03 09:07:19 +00:00
This commit is contained in:
Lunny Xiao
2024-11-09 20:38:37 -08:00
parent 04fa8f2fb3
commit 70b06b8fcc
2 changed files with 2 additions and 2 deletions

View File

@ -631,7 +631,7 @@ func (errs errlist) Error() string {
// RetargetBranchPulls change target branch for all pull requests whose base branch is the branch
// Both branch and targetBranch must be in the same repo (for security reasons)
func RetargetBranchPulls(ctx context.Context, doer *user_model.User, repoID int64, branch string, targetBranch string) error {
func RetargetBranchPulls(ctx context.Context, doer *user_model.User, repoID int64, branch, targetBranch string) error {
prs, err := issues_model.GetUnmergedPullRequestsByBaseInfo(ctx, repoID, branch)
if err != nil {
return err