fix(github): consolidate review.go and identity.go into reviews.go (#116) #119
+4
-2
@@ -197,8 +197,10 @@ func (c *Client) ListReviews(ctx context.Context, owner, repo string, number int
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we just fetched page maxPages and it was full (the short-page break
|
// Truncation detection: this runs on the final allowed iteration
|
||||||
// above didn't fire), more reviews likely exist beyond our limit.
|
// (page == maxPages) only when the page was full (the len < perPage
|
||||||
|
// early-break above didn't fire). A full final page means additional
|
||||||
|
// reviews likely exist beyond our pagination limit.
|
||||||
if page == maxPages {
|
if page == maxPages {
|
||||||
truncated = true
|
truncated = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user