Skip to content

Commit

Permalink
Fix poster is not loaded in get default merge message (go-gitea#27657)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored and GiteaBot committed Oct 17, 2023
1 parent 171950a commit 0cf65b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/pull/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 := "#"
Expand Down

0 comments on commit 0cf65b0

Please sign in to comment.