diff --git a/models/issues/pull_list.go b/models/issues/pull_list.go index 68f62ffc4..f4efd916c 100644 --- a/models/issues/pull_list.go +++ b/models/issues/pull_list.go @@ -187,6 +187,7 @@ func (prs PullRequestList) loadAttributes(ctx context.Context) error { if pr.Issue == nil { return fmt.Errorf("issues and prs may be not in sync: cannot find issue %v for pr %v: %w", pr.IssueID, pr.ID, util.ErrNotExist) } + pr.Issue.PullRequest = pr } return nil }