From cf1174acbf843ca65f1fd278b5677b34ca52173a Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 18 Oct 2023 00:20:23 +0800 Subject: [PATCH] Fix poster is not loaded in get default merge message (#27657) (#27665) Backport #27657 by @lunny Co-authored-by: Lunny Xiao (cherry picked from commit 80c0c8815203128703eae741e712289393458687) --- services/pull/merge.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/pull/merge.go b/services/pull/merge.go index 416c744463..4c90983f0d 100644 --- a/services/pull/merge.go +++ b/services/pull/merge.go @@ -45,6 +45,9 @@ func getMergeMessage(ctx context.Context, baseGitRepo *git.Repository, pr *issue if err := pr.LoadIssue(ctx); err != nil { return "", "", err } + if err := pr.Issue.LoadPoster(ctx); err != nil { + return "", "", err + } isExternalTracker := pr.BaseRepo.UnitEnabled(ctx, unit.TypeExternalTracker) issueReference := "#"