From 2e2fcbabfc0442bc421d4a3af1102465fa30f54c Mon Sep 17 00:00:00 2001 From: claw Date: Wed, 13 May 2026 17:53:20 -0700 Subject: [PATCH] style: fix import ordering and restore nil-body comment - Reorder stdlib imports in review_test.go to alphabetical (goimports convention) - Restore explanatory comment for nil body in DeleteReview Addresses review comments #20533, #20534 on PR #119 --- github/review_test.go | 2 +- github/reviews.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/github/review_test.go b/github/review_test.go index 3459956..0c1e4d3 100644 --- a/github/review_test.go +++ b/github/review_test.go @@ -2,9 +2,9 @@ package github import ( "context" - "fmt" "encoding/json" "errors" + "fmt" "io" "net/http" "strings" diff --git a/github/reviews.go b/github/reviews.go index b448d53..3e87dbc 100644 --- a/github/reviews.go +++ b/github/reviews.go @@ -221,6 +221,7 @@ func (c *Client) DeleteReview(ctx context.Context, owner, repo string, number in reqURL := fmt.Sprintf("%s/repos/%s/%s/pulls/%d/reviews/%d", c.baseURL, url.PathEscape(owner), url.PathEscape(repo), number, reviewID) + // nil body: the GitHub DELETE endpoint for reviews requires no request body. _, err := c.doRequestWithBody(ctx, http.MethodDelete, reqURL, nil) if err != nil { var apiErr *APIError