fix(pull): keep the merged state in sync with git (#39062)

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
bircni
2026-08-26 01:04:49 +08:00
committed by GitHub
co-authored by wxiaoguang silverwind
parent 1680ac24e6
commit 38747d48fe
7 changed files with 66 additions and 60 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ func MergeUpstream(ctx reqctx.RequestContext, doer *user_model.User, repo *repo_
BaseBranch: divergingInfo.BaseBranchName,
}
fakeIssue.PullRequest = fakePR
err = pull.Update(ctx, fakePR, doer, "merge upstream", false)
err = pull.Update(fakePR, doer, "merge upstream", false)
if err != nil {
return "", err
}