fix(pr): default commit texts should not depend on default merge strategy

This commit is contained in:
0ko 2025-03-30 15:15:33 +05:00
parent 49ea851da9
commit 66b8e52415

View file

@ -1938,7 +1938,7 @@ func ViewIssue(ctx *context.Context) {
}
ctx.Data["UpdateStyle"] = updateStyle
defaultMergeMessage, defaultMergeBody, err := pull_service.GetDefaultMergeMessage(ctx, ctx.Repo.GitRepo, pull, mergeStyle)
defaultMergeMessage, defaultMergeBody, err := pull_service.GetDefaultMergeMessage(ctx, ctx.Repo.GitRepo, pull, repo_model.MergeStyleMerge)
if err != nil {
ctx.ServerError("GetDefaultMergeMessage", err)
return