aboutsummaryrefslogtreecommitdiffstats
path: root/services/pull
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-10-17 23:07:23 +0800
committerGitHub <noreply@github.com>2023-10-17 15:07:23 +0000
commiteeb1e0242b24497ba77ac834288fcaa54d4dc588 (patch)
tree58515531731c3fbbf47c09462ec659a3905eb359 /services/pull
parent4adc2a828d7ad297a4edf5d0c39aee3d2f28bb16 (diff)
downloadgitea-eeb1e0242b24497ba77ac834288fcaa54d4dc588.tar.gz
gitea-eeb1e0242b24497ba77ac834288fcaa54d4dc588.zip
Fix poster is not loaded in get default merge message (#27657)
Diffstat (limited to 'services/pull')
-rw-r--r--services/pull/merge.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/pull/merge.go b/services/pull/merge.go
index e6f02e6e02..33c7455c08 100644
--- a/services/pull/merge.go
+++ b/services/pull/merge.go
@@ -44,6 +44,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 := "#"