Rodin rodin
  • Joined on 2026-04-23
rodin commented on pull request rodin/review-bot#106 2026-05-13 11:29:29 +00:00
feat(cmd): wire --provider and --base-url flags into CLI (Phase 5)

Self-Review: PR #106

Self-review against ae94ba7be6c4dbf598ed3bf4766ee0d0a1a9c3be

Phase 1: Independent Findings

rodin commented on pull request rodin/review-bot#106 2026-05-13 11:16:07 +00:00
feat(cmd): wire --provider and --base-url flags into CLI (Phase 5)

Addressed all three MINOR findings from review #3152 in commit ae94ba7:

Re: Comment #18889 (type assertion in supersedeOldReviews): Added a doc comment explaining that the assertion is…

rodin commented on pull request rodin/review-bot#106 2026-05-13 11:15:46 +00:00
feat(cmd): wire --provider and --base-url flags into CLI (Phase 5)

Fixed in ae94ba7. Added a doc comment explaining that the type assertion is guaranteed to succeed given the caller's provider switch (only "gitea" reaches this point), and that the !ok branch guards against future refactors like wrapping the adapter in a decorator.

rodin pushed to review-bot-issue-82 at rodin/review-bot 2026-05-13 11:14:32 +00:00
ae94ba7be6 docs(cmd,github): clarify type assertion and parameter usage in review superseding
rodin commented on pull request rodin/review-bot#104 2026-05-13 11:08:55 +00:00
fix(gitea): map hunk-header positions in BuildPositionToLineMap

Acknowledged. The current structure reads top-to-bottom: scan forward for a resolution, then differentiate the error. Moving the check before the loop would require storing the message in a variable or duplicating the scan logic. The linear post-loop flow is clearer. Keeping as-is.

rodin commented on pull request rodin/review-bot#104 2026-05-13 11:08:55 +00:00
fix(gitea): map hunk-header positions in BuildPositionToLineMap

Addressing review NITs — pushing back on all three as the code structure is intentional and the missing test already exists.

rodin commented on pull request rodin/review-bot#104 2026-05-13 11:08:55 +00:00
fix(gitea): map hunk-header positions in BuildPositionToLineMap

This edge case IS tested — see TestTranslate_HunkHeaderAtEnd (line 361), which tests exactly the scenario where a hunk-header is the last position with no subsequent new-file line. That test covers the error path the NIT mentions.

rodin commented on pull request rodin/review-bot#104 2026-05-13 11:08:55 +00:00
fix(gitea): map hunk-header positions in BuildPositionToLineMap

Same reasoning as the earlier NIT on this topic: the post-loop position is the natural place for error differentiation. Computing it before the loop would add a variable that's only used in the failure path and separate the error logic from where the failure is detected. Current flow is: attempt resolution → explain failure. Keeping as-is.

rodin commented on pull request rodin/review-bot#104 2026-05-13 11:08:37 +00:00
fix(gitea): map hunk-header positions in BuildPositionToLineMap

test

rodin commented on pull request rodin/review-bot#106 2026-05-13 11:01:35 +00:00
feat(cmd): wire --provider and --base-url flags into CLI (Phase 5)

Self-Review: PR #106

Self-review against 48658ca6a49578e14e260e4c09ddfbf9b51a21e8

Phase 1: Independent Findings

None — diff looks clean. All previous issues have been addressed in this…

rodin commented on pull request rodin/review-bot#106 2026-05-13 10:54:56 +00:00
feat(cmd): wire --provider and --base-url flags into CLI (Phase 5)

Addressed all findings from self-review at 94cf894c in commit 48658ca:

Finding #1 (MINOR)findOwnReview dead code: Removed the function and its test (TestFindOwnReview). `findAllOwnR…

rodin pushed to review-bot-issue-82 at rodin/review-bot 2026-05-13 10:54:43 +00:00
48658ca6a4 fix: address self-review findings
rodin commented on pull request rodin/review-bot#106 2026-05-13 10:47:37 +00:00
feat(cmd): wire --provider and --base-url flags into CLI (Phase 5)

Self-Review: PR #106

Self-review against 94cf894c49e0e8851a484f491fba30202edb72f2

Phase 1: Independent Findings

rodin commented on pull request rodin/review-bot#106 2026-05-13 10:40:48 +00:00
feat(cmd): wire --provider and --base-url flags into CLI (Phase 5)

No change needed — vcs.ReviewEvent is defined as type ReviewEvent string (see vcs/types.go). The %s verb is correct for string-backed types; Go's fmt package uses the underlying string…

rodin commented on pull request rodin/review-bot#106 2026-05-13 10:40:42 +00:00
feat(cmd): wire --provider and --base-url flags into CLI (Phase 5)

Pushing back: The --base-url is operator-controlled configuration (env var or CLI flag), not user input. The client already enforces HTTPS-only (rejecting non-TLS URLs) and strips Authorization…

rodin commented on pull request rodin/review-bot#106 2026-05-13 10:40:33 +00:00
feat(cmd): wire --provider and --base-url flags into CLI (Phase 5)

Fixed in 94cf894 — added an explicit ORDERING comment noting the dependency on registration-before-parse evaluation order.

rodin commented on pull request rodin/review-bot#106 2026-05-13 10:40:30 +00:00
feat(cmd): wire --provider and --base-url flags into CLI (Phase 5)

Fixed in 94cf894 — removed the redundant explicit case vcs.ReviewEventComment. The default case handles it.

rodin commented on pull request rodin/review-bot#106 2026-05-13 10:40:25 +00:00
feat(cmd): wire --provider and --base-url flags into CLI (Phase 5)

Acknowledged — the type assertion is intentionally provider-specific. supersedeOldReviews is a provider-dispatched function by design (the switch on provider at the top). GitHub uses…

rodin commented on pull request rodin/review-bot#106 2026-05-13 10:40:17 +00:00
feat(cmd): wire --provider and --base-url flags into CLI (Phase 5)

Fixed in 94cf894 — doJSONRequest now has the same 429 retry logic as doRequest, including Retry-After header support and configurable backoff. Added tests for both retry-success and…

rodin pushed to review-bot-issue-82 at rodin/review-bot 2026-05-13 10:39:58 +00:00
94cf894c49 fix: address review feedback on PR #106