Skip to content

Add auto_close_passing_reviews config option#595

Merged
wesm merged 3 commits intoroborev-dev:mainfrom
cpcloud:worktree-lexical-gliding-dolphin
Mar 30, 2026
Merged

Add auto_close_passing_reviews config option#595
wesm merged 3 commits intoroborev-dev:mainfrom
cpcloud:worktree-lexical-gliding-dolphin

Conversation

@cpcloud
Copy link
Copy Markdown
Contributor

@cpcloud cpcloud commented Mar 30, 2026

Summary

  • Add auto_close_passing_reviews config option (global and per-repo) that automatically marks reviews as closed when they pass with no findings
  • Per-repo .roborev.toml overrides global ~/.roborev/config.toml using the standard resolveBool chain
  • Auto-close logic in the worker is gated on IsReviewJob() so it only fires for review/range/dirty jobs, not task/insights/compact/fix
  • Tests cover enabled/disabled toggle, per-repo override, and a regression test for non-review job types

🤖 Generated with Claude Code

cpcloud and others added 3 commits March 30, 2026 08:06
Automatically mark reviews as closed when they pass with no findings.
Configurable globally in ~/.roborev/config.toml and per-repo in
.roborev.toml (per-repo overrides global).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use IsReviewJob() instead of !IsFixJob() so auto-close only fires for
actual review jobs (review, range, dirty), not task/insights/compact.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Verify that task jobs with a passing verdict are not auto-closed even
when auto_close_passing_reviews is enabled.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@roborev-ci
Copy link
Copy Markdown

roborev-ci bot commented Mar 30, 2026

roborev: Combined Review (a70bff8)

Code review verdict: no medium-or-higher issues found; the change looks clean.

All three review passes agreed there are no findings at Medium, High, or Critical severity.


Synthesized from 3 reviews (agents: codex, gemini | types: default, security)

@wesm wesm merged commit 8ba5422 into roborev-dev:main Mar 30, 2026
8 checks passed
@cpcloud cpcloud deleted the worktree-lexical-gliding-dolphin branch March 30, 2026 20:40
@cpcloud
Copy link
Copy Markdown
Contributor Author

cpcloud commented Mar 30, 2026

Looks like I introduced a race, per https://github.com/roborev-dev/roborev/actions/runs/23765857336/job/69245061077?pr=598.

Fixing…

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.

3 participants