fix: address review feedback on PR #106

- Add 429 rate-limit retry logic to doJSONRequest (matching doRequest
  behavior) so write operations (PostReview, DismissReview) properly
  retry when rate-limited by GitHub
- Remove redundant explicit case for ReviewEventComment in
  translateReviewEvent (default already handles it)
- Add ordering comment on --gitea-url alias registration explaining
  the dependency on registration-before-parse evaluation order
- Add tests for doJSONRequest retry/exhaust behavior
This commit is contained in:
claw
2026-05-13 03:39:53 -07:00
committed by Aaron Weiker
parent c4d1631242
commit 002b60d438
4 changed files with 140 additions and 26 deletions
-2
View File
@@ -61,8 +61,6 @@ func translateReviewEvent(event vcs.ReviewEvent) string {
return "APPROVE"
case vcs.ReviewEventRequestChanges:
return "REQUEST_CHANGES"
case vcs.ReviewEventComment:
return "COMMENT"
default:
return "COMMENT"
}