test(github): use t.Run subtests in TestTranslateGitHubReviewState; doc: note nil body in DeleteReview

This commit is contained in:
claw
2026-05-13 02:04:06 -07:00
committed by Aaron Weiker
parent 9dd5e8dbac
commit cd8a1becb3
2 changed files with 14 additions and 10 deletions
+1
View File
@@ -173,6 +173,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