Skip to content

feat(schema): add review.incremental opt-in setting (default false) - #195

Open
MaxonT wants to merge 1 commit into
devarshishimpi:mainfrom
MaxonT:contrib/179-auto
Open

MaxonT wants to merge 1 commit into
devarshishimpi:mainfrom
MaxonT:contrib/179-auto

Conversation

@MaxonT

@MaxonT MaxonT commented Nov 23, 2026

Copy link
Copy Markdown

Description

Adds review.incremental to the repository review config schema as a boolean that defaults to false, and documents it in the configuration guide (default config example plus the field reference). Unset or false leaves behavior as it is today, since nothing reads the flag yet.

Fixes #179

Thanks for splitting the incremental-review work into small sub-issues with a clear "Done When" list; it made the scope easy to follow.

Not included: the dashboard toggle. The issue says to add it only if repo settings are editable there, and I did not find any review.* field exposed in apps/dashboard, so I left the UI alone.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Chore (refactoring, dependency updates, etc.)

How Has This Been Tested?

  • Unit Tests: new test/repo-config-incremental.spec.ts covers the default (unset, empty review, defaultRepoConfig), an explicit true surviving normalizeRepoConfig, and rejection of a non-boolean value. It passes with the change and all 3 cases fail when the schema line is removed.
  • npm run typecheck and eslint on the touched paths: clean.
  • npm run test:unit: 403 passed, 1 failed. The failure is test/review/subrequest-completion.spec.ts with ECONNREFUSED 127.0.0.1:5432, because I had no Postgres running; it does not touch this change. I did not run npm test (needs a database) or the integration suite.
  • Integration Tests (not run)
  • Manual Dashboard Verification (not applicable, no UI change)
  • Manual GitHub Webhook Verification (not applicable)

Checklist:

  • I have starred Codra on GitHub
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes (all but one Postgres-dependent test, see above)
  • I have signed the CLA

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T23:01:00.330260Z 156d9f6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codra-app-personal codra-app-personal Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codra Review

✅ Nothing to flag. Reviewed 3 files (42 changed lines) and found no issues worth raising.

Reviewed commit: 156d9f6451

ℹ️ About Codra in GitHub

Your team has set up Codra to review pull requests in this repo. Reviews are triggered when you:

  • Open a pull request for review
  • Mark a draft as ready

Every review posts a summary here. A clean pass also gets a 👍 on the pull request itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the Review.Incremental Setting and Documentation

1 participant