Skip to content

Commit d74d16a

Browse files
authored
Set PR for issue when load attributes for PRs (#22766)
A missing patch for #22650.
1 parent c18a622 commit d74d16a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: models/issues/pull_list.go

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ func (prs PullRequestList) loadAttributes(ctx context.Context) error {
187187
if pr.Issue == nil {
188188
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)
189189
}
190+
pr.Issue.PullRequest = pr
190191
}
191192
return nil
192193
}

0 commit comments

Comments
 (0)