fix: address review findings (pagination, case-insensitive bool, docs)
- ListReviews: add ?limit=50 to handle PRs with many reviews - envOrDefaultBool: case-insensitive, whitespace-trimmed (TRUE/Yes/1 all work) - action.yml: document accepted boolean values in description - Test: verify limit query parameter is sent
This commit is contained in:
+1
-1
@@ -298,7 +298,7 @@ func (c *Client) GetAuthenticatedUser(ctx context.Context) (string, error) {
|
||||
|
||||
// ListReviews returns all reviews on a pull request.
|
||||
func (c *Client) ListReviews(ctx context.Context, owner, repo string, number int) ([]Review, error) {
|
||||
reqURL := fmt.Sprintf("%s/api/v1/repos/%s/%s/pulls/%d/reviews",
|
||||
reqURL := fmt.Sprintf("%s/api/v1/repos/%s/%s/pulls/%d/reviews?limit=50",
|
||||
c.baseURL,
|
||||
url.PathEscape(owner),
|
||||
url.PathEscape(repo),
|
||||
|
||||
Reference in New Issue
Block a user