Skip to content

Commit

Permalink
Set PR for issue when load attributes for PRs (#22766)
Browse files Browse the repository at this point in the history
A missing patch for #22650.
  • Loading branch information
wolfogre authored Feb 5, 2023
1 parent c18a622 commit d74d16a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/issues/pull_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d74d16a

Please sign in to comment.