Skip to content

pending-review: Add replace flag, extended-help, dry-run, fix null serialization#16

Merged
cgwalters merged 1 commit into
mainfrom
agent-pending-review-replace-flag
Feb 27, 2026
Merged

pending-review: Add replace flag, extended-help, dry-run, fix null serialization#16
cgwalters merged 1 commit into
mainfrom
agent-pending-review-replace-flag

Conversation

@cgwalters

Copy link
Copy Markdown
Collaborator

Summary

  • Fix ReviewComment serializing null for optional line/side fields, which GitHub rejects with 422. Add skip_serializing_if.
  • The create operation now checks for existing pending service-gator reviews and errors if one exists, directing the caller to set replace=true. With replace=true, existing pending reviews are deleted before creating the new one.
  • Add extended-help operation documenting the tool interface and usage.
  • Add dry_run flag on create for input validation without submission.

Tested end-to-end against the GitHub API (cgwalters/playground PR #66): extended-help, dry_run, create with inline comments, create-without-replace error, create-with-replace, and delete all pass.

…rialization

Fix a bug where ReviewComment serialized null for optional line/side
fields, causing GitHub to reject with 422. Add skip_serializing_if.

The create operation now checks for existing pending service-gator
reviews (identified by marker token) and errors if one exists, telling
the caller to set replace=true. This makes the destructive action
explicit. With replace=true, all existing pending marker-bearing
reviews are deleted before creating the new one.

Add extended-help operation documenting the tool interface, comment
conventions from perform-forge-review, and the marker token mechanism.

Add dry_run flag on the create operation for input validation without
submission.

Tested end-to-end against the GitHub API: extended-help, dry_run,
create with inline comments, create-without-replace error,
create-with-replace, and delete all pass.

Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters marked this pull request as ready for review February 27, 2026 21:57
@cgwalters cgwalters enabled auto-merge February 27, 2026 21:57
@cgwalters cgwalters merged commit b5d6762 into main Feb 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant