Skip to content

Commit

Permalink
fix: set pr for issue when load attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfogre committed Feb 5, 2023
1 parent c18a622 commit 6aff15f
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 6aff15f

Please sign in to comment.