Skip to content

fix(approval): always tell the CLI whether to withdraw approvals - #138

Merged
ngoyal16 merged 4 commits into
mainfrom
fix/explicit-approve-withdraw
Nov 23, 2026
Merged

ngoyal16 merged 4 commits into
mainfrom
fix/explicit-approve-withdraw

Conversation

@ngoyal16

Copy link
Copy Markdown
Contributor

Companion to divmora/code-review-bot#26 (bot issue #22).

Why

code-review-bot 0.6 makes --approve-withdraw default to on, and also withdraws the bot's approval when a review can't judge a new commit (too large, partly failed). The console passed --approve-withdraw only when the setting was on, and nothing otherwise. With the new default, Settings → "When a later review doesn't pass: Leave it" would silently start withdrawing.

Changes

  • executor.Args always passes --approve-withdraw=true or --approve-withdraw=false. Go's flag package accepts that form on every CLI version, so it's safe with 0.5 too.
  • The Settings note and docs/admin.md describe the new behaviour: an undecided review of a new commit withdraws when withdrawing is on (CLI 0.6 or later), and a re-review of the same commit leaves the approval.

Tests

go test ./... passes (TestArgsApproval checks both forms), golangci-lint passes, and the UI was rebuilt.

Merge this before the console bundles CLI 0.6.

🤖 Generated with Claude Code

ngoyal16 and others added 4 commits November 23, 2026 20:02
code-review-bot 0.6 turns --approve-withdraw on by default and also
withdraws when a new commit can't be judged (divmora/code-review-bot#22).
The console only passed the flag when withdrawing was on, so "Leave it"
would start withdrawing; it now passes --approve-withdraw=true or =false
(older CLIs accept both). The Settings note and docs describe the new
behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…withdraw

# Conflicts:
#	docs/admin.md
#	internal/admin/ui/assets/index-BC4KGOvB.js
#	internal/admin/ui/index.html
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…withdraw

# Conflicts:
#	internal/admin/ui/assets/index-CoZ3NXGa.js
#	internal/admin/ui/index.html
@ngoyal16
ngoyal16 merged commit 48e6cc8 into main Nov 23, 2026
13 checks passed
@ngoyal16
ngoyal16 deleted the fix/explicit-approve-withdraw branch November 23, 2026 15:56
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