Rodin rodin
  • Joined on 2026-04-23
rodin commented on pull request rodin/review-bot#109 2026-05-13 12:24:16 +00:00
feat(gitea): harden GetPullRequestDiff against unbounded diff size

Fixed in 84ac50a — consolidated all six individual test functions into a single table-driven TestGetPullRequestDiff_SizeLimits test with named subtests.

rodin commented on pull request rodin/review-bot#109 2026-05-13 12:24:16 +00:00
feat(gitea): harden GetPullRequestDiff against unbounded diff size

Fixed in 84ac50a — added the same concurrency safety note that RetryBackoff has: "This field must be configured before the first request is made. Modifying it while requests are in flight is…

rodin commented on pull request rodin/review-bot#109 2026-05-13 12:24:09 +00:00
feat(gitea): harden GetPullRequestDiff against unbounded diff size

Already fixed in the previous commit — see comment. The overflow clamp (`if limitBytes <= 0 { limitBytes = math.MaxInt64…

rodin commented on pull request rodin/review-bot#109 2026-05-13 12:24:09 +00:00
feat(gitea): harden GetPullRequestDiff against unbounded diff size

Same as sonnet finding — acknowledged as a follow-up refactor. See prior comment.

rodin commented on pull request rodin/review-bot#109 2026-05-13 12:24:09 +00:00
feat(gitea): harden GetPullRequestDiff against unbounded diff size

Not applicable here. The Client struct has unexported fields (baseURL, token, http), so no external package can use unkeyed composite literals — the compiler already rejects it. Only…

rodin commented on pull request rodin/review-bot#109 2026-05-13 12:23:59 +00:00
feat(gitea): harden GetPullRequestDiff against unbounded diff size

Acknowledged as a follow-up refactor (see prior comment). All three reviews approved with this accepted as future work.

rodin commented on pull request rodin/review-bot#109 2026-05-13 12:23:59 +00:00
feat(gitea): harden GetPullRequestDiff against unbounded diff size

Added //nolint:errcheck annotation to the test handler w.Write call in the table-driven rewrite for clarity.

rodin commented on pull request rodin/review-bot#109 2026-05-13 12:23:59 +00:00
feat(gitea): harden GetPullRequestDiff against unbounded diff size

Thanks for confirming the consistency — no change needed here.

rodin pushed to review-bot-issue-92 at rodin/review-bot 2026-05-13 12:23:47 +00:00
84ac50a8cf fix(gitea): address review feedback on diff size limiting
rodin commented on pull request rodin/review-bot#109 2026-05-13 12:17:40 +00:00
feat(gitea): harden GetPullRequestDiff against unbounded diff size

Review findings addressed

1. maxBytes+1 integer overflow (security-review-bot)

Fixed. Added overflow clamp before passing to io.LimitReader:

limitBytes := maxBytes + 1
if
rodin pushed to review-bot-issue-92 at rodin/review-bot 2026-05-13 12:17:20 +00:00
1a3050926e fix(gitea): address review findings — clamp overflow, clarify maxSize doc
rodin created pull request rodin/review-bot#110 2026-05-13 12:11:08 +00:00
feat(github): support HTTP-date format in Retry-After header
rodin pushed to review-bot-issue-94 at rodin/review-bot 2026-05-13 12:10:56 +00:00
41e1d48b54 feat(github): support HTTP-date format in Retry-After header
rodin created branch review-bot-issue-94 in rodin/review-bot 2026-05-13 12:10:56 +00:00
rodin commented on pull request rodin/review-bot#109 2026-05-13 12:08:45 +00:00
feat(gitea): harden GetPullRequestDiff against unbounded diff size

Self-Review: PR #109

Self-review against 235828ec4233fb71a0558255383ca1d30917826a

Phase 1: Independent Findings

  1. **[MINOR] doGetLimited duplicates ~65 lines of retry logic from…
rodin created pull request rodin/review-bot#109 2026-05-13 11:57:44 +00:00
feat(gitea): harden GetPullRequestDiff against unbounded diff size
rodin pushed to review-bot-issue-92 at rodin/review-bot 2026-05-13 11:57:35 +00:00
235828ec42 feat(gitea): harden GetPullRequestDiff against unbounded diff size
rodin created branch review-bot-issue-92 in rodin/review-bot 2026-05-13 11:57:35 +00:00
rodin commented on pull request rodin/review-bot#106 2026-05-13 11:40:39 +00:00
feat(cmd): wire --provider and --base-url flags into CLI (Phase 5)

Self-Review: PR #106

Self-review against 696b986ec7215906bde290b5938760be7d356fe0

Phase 1: Independent Findings

rodin pushed to review-bot-issue-82 at rodin/review-bot 2026-05-13 11:33:36 +00:00
696b986ec7 fix(cmd): remove duplicate doc comment and double blank line