Repository navigation
fix(approval): always tell the CLI whether to withdraw approvals - #138
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to divmora/code-review-bot#26 (bot issue #22).
Why
code-review-bot 0.6 makes
--approve-withdrawdefault 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-withdrawonly 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.Argsalways passes--approve-withdraw=trueor--approve-withdraw=false. Go's flag package accepts that form on every CLI version, so it's safe with 0.5 too.docs/admin.mddescribe 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 (TestArgsApprovalchecks both forms), golangci-lint passes, and the UI was rebuilt.Merge this before the console bundles CLI 0.6.
🤖 Generated with Claude Code