forked from NYANDEV/forgejo
Set PR for issue when load attributes for PRs (#22766)
A missing patch for #22650.
This commit is contained in:
parent
c18a62279a
commit
d74d16a4b1
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue