Skip to content

ci: review pull requests based on v7 as well as the default branch - #29829

Closed
tensordreams wants to merge 1 commit into
mainfrom
ci/coderabbit-review-v7-base
Closed

tensordreams wants to merge 1 commit into
mainfrom
ci/coderabbit-review-v7-base

Conversation

@tensordreams

@tensordreams tensordreams commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Linked issue

n/a — follows from the v7 / main branch swap.

Summary

Pull requests against v7 come back with:

Review skipped — Auto reviews are disabled on base/target branches other than the default branch.

CodeRabbit reviews only the default branch unless a base branch is named in reviews.auto_review.base_branches, which defaults to []. This names v7.

Why this lands in two places

#29828 adds the same entry on v7. Belt and braces, deliberately, because which copy governs the gate is genuinely unclear:

  • The documentation says "The configuration present in the feature branch under review will be automatically detected and used by CodeRabbit for that review."
  • But ci: enable CodeRabbit auto-reviews on the v7 branch #29828's own feature branch carries .coderabbit.yml with base_branches: ["v7"], and CodeRabbit skipped it anyway, reporting Configuration used: Organization UI.

So the documented rule does not describe what actually happened, and the observed behaviour is equally consistent with the config being read from the base branch (v7, which has no file yet, hence the fallback to organisation settings) and with the gate being evaluated from a repository-level configuration before any branch file is consulted.

Rather than pick one and risk a change that merges cleanly and does nothing, the entry goes in both. It is one line, and harmless wherever it turns out to be redundant.

If neither takes effect

The configuration demonstrably in force for v7-based pull requests today is Organization UI. If both file copies turn out to be ignored, setting the same base branch there is the lever that must work, since that is the configuration CodeRabbit reports itself as using. That is an org settings change rather than anything a PR can carry.

Testing performed

  • Confirmed reviews.auto_review.base_branches against the published schema: "Base branches (other than the default branch) to review. Accepts regex patterns."
  • Confirmed the file parses and resolves to the intended values, with the existing path_filters intact.
  • Compared CodeRabbit's own Configuration used line across PRs based on main (Path: .coderabbit.yml) and on v7 (Organization UI), which is what established that the file on main is not consulted for v7-based PRs.

This cannot be verified before merge — a configuration change takes effect only once it is on the branch CodeRabbit reads. The check is the first pull request opened against v7 afterwards; if it is still skipped, the organisation UI is the remaining lever.

Skill update

n/a — CI configuration only.

Checklist

  • All commits are signed off (git commit -s) per the DCO.
  • The change is scoped to one logical concern.
  • Tests are updated — n/a, configuration only.
  • PR title in TML-NNNN: <sentence-case title> form — no Linear ticket exists for this change; happy to retitle if one should be raised.

Summary by CodeRabbit

  • Chores
    • Updated automated review configuration to include the v7 base branch.

CodeRabbit reviews only the default branch unless a base branch is named
in reviews.auto_review.base_branches, so pull requests against v7 come
back with "Auto reviews are disabled on base/target branches other than
the default branch" and no review.

Which copy of the configuration governs that gate is not clear. The
documentation says the file is read from the pull request's feature
branch, but a pull request whose feature branch carries the entry was
still skipped, reporting "Configuration used: Organization UI". The same
entry is therefore on the v7 branch, and here, so the setting takes effect
under either behaviour rather than silently doing nothing.

Signed-off-by: Alexey Orlenko's AI Agent <[email protected]>
@tensordreams
tensordreams requested a review from a team as a code owner July 28, 2026 13:35
@coderabbitai

coderabbitai Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Ignoring CodeRabbit configuration file changes. For security, only the configuration from the base branch is applied for open source repositories.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro Plus

Run ID: c94fb753-0b85-4f04-bff7-0af8d14b73f6

📥 Commits

Reviewing files that changed from the base of the PR and between a50a762 and 5868676.

📒 Files selected for processing (1)
  • .coderabbit.yml

📝 Walkthrough

Walkthrough

Updates .coderabbit.yml to configure CodeRabbit auto-review behavior for pull requests using v7 as a base branch.

Changes

Auto-review configuration

Layer / File(s) Summary
Configure auto-review base branch
.coderabbit.yml
Adds auto_review.base_branches with v7 and related configuration comments.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: aqrln

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly reflects the configuration change to enable reviews for v7 alongside the default branch.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/coderabbit-review-v7-base

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
postgres / no-emit 170.18 KB (0%)
postgres / emit 150.83 KB (0%)
mongo / no-emit 100.72 KB (0%)
mongo / emit 90.4 KB (0%)
cf-worker / no-emit 195.84 KB (0%)
cf-worker / emit 174.68 KB (0%)

aqrln pushed a commit that referenced this pull request Jul 28, 2026
## Summary

Pull requests against this branch come back with:

> **Review skipped** — Auto reviews are disabled on base/target branches
other than the default branch.

CodeRabbit reviews only the default branch unless a base branch is named
in `reviews.auto_review.base_branches`, which defaults to `[]`. This
branch has no `.coderabbit.yml` at all, so it adds one naming `v7`.

## Why this lands in two places

#29829 adds the same entry to the copy on `main`. Belt and
braces, deliberately, because which copy governs the gate is genuinely
unclear:

- The
[documentation](https://docs.coderabbit.ai/guides/configure-coderabbit)
says *"The configuration present in the **feature branch** under review
will be automatically detected and used by CodeRabbit for that review."*
- **This pull request falsifies that as stated.** Its own feature branch
carries the file below, and CodeRabbit skipped it anyway, reporting
`Configuration used: Organization UI`.

The observed behaviour is equally consistent with the file being read
from the **base** branch — `v7`, which has no file yet, hence the
fallback to organisation settings — and with the gate being evaluated
from a repository-level configuration before any branch file is
consulted. CodeRabbit's `Configuration used` line does separate one
thing cleanly: PRs based on `main` report `Path: .coderabbit.yml` while
PRs based on `v7` report `Organization UI`, so `main`'s copy is
certainly not what is consulted here today.

Rather than pick a model and risk a change that merges cleanly and does
nothing, the entry goes in both places. It is a handful of lines, and
harmless wherever it proves redundant.

If both file copies turn out to be ignored, the configuration
demonstrably in force for these pull requests is **Organization UI**,
and setting the base branch there is the lever that must work — an org
settings change rather than anything a PR can carry.

## The profile is pinned, not defaulted

`reviews.profile` is set to `assertive` explicitly. Reviews on this
branch run on the organisation UI's assertive profile today, and merely
introducing a repository config would otherwise take the schema default
of `chill` and relax them as a silent side effect of enabling
auto-review. The maintenance line keeps the stricter profile; the
default branch, which sets no profile, keeps `chill`.

## Testing performed

- Confirmed `reviews.auto_review.base_branches` against the published
schema: *"Base branches (other than the default branch) to review.
Accepts regex patterns."*
- Confirmed `chill` is the schema default for `reviews.profile`, which
is what made pinning it necessary rather than cosmetic.
- Confirmed the file parses and resolves to the intended values.
- Confirmed `projects/` exists on this branch and holds transient
workspaces, as on `main`, so mirroring that path filter is meaningful
rather than copied blindly.

This cannot be verified before merge, and this PR being skipped is
itself the evidence above. The check is the first pull request opened
against this branch afterwards — both that it is reviewed at all, and
that the review runs assertive.

Note also that `.coderabbit.yml` is not in `test.yml`'s `paths-ignore`,
so this configuration-only change runs the full test matrix. That list
is duplicated across five workflow files with a comment requiring them
to be kept in step, so I left it alone rather than widen this PR.

## Checklist

- [x] All commits are signed off per the DCO.
- [x] The change is scoped to one logical concern.

Signed-off-by: Alexey Orlenko's AI Agent <[email protected]>
@aqrln

aqrln commented Jul 29, 2026

Copy link
Copy Markdown
Member

Reviews on v7 now work after adding v7 to base_branches there on that branch, so let's not add it here after all.

@aqrln aqrln closed this Jul 29, 2026
@aqrln
aqrln deleted the ci/coderabbit-review-v7-base branch July 29, 2026 11:49
lh0x00 pushed a commit to lh0x00/prisma that referenced this pull request Aug 9, 2026
## Summary

Pull requests against this branch come back with:

> **Review skipped** — Auto reviews are disabled on base/target branches
other than the default branch.

CodeRabbit reviews only the default branch unless a base branch is named
in `reviews.auto_review.base_branches`, which defaults to `[]`. This
branch has no `.coderabbit.yml` at all, so it adds one naming `v7`.

## Why this lands in two places

prisma#29829 adds the same entry to the copy on `main`. Belt and
braces, deliberately, because which copy governs the gate is genuinely
unclear:

- The
[documentation](https://docs.coderabbit.ai/guides/configure-coderabbit)
says *"The configuration present in the **feature branch** under review
will be automatically detected and used by CodeRabbit for that review."*
- **This pull request falsifies that as stated.** Its own feature branch
carries the file below, and CodeRabbit skipped it anyway, reporting
`Configuration used: Organization UI`.

The observed behaviour is equally consistent with the file being read
from the **base** branch — `v7`, which has no file yet, hence the
fallback to organisation settings — and with the gate being evaluated
from a repository-level configuration before any branch file is
consulted. CodeRabbit's `Configuration used` line does separate one
thing cleanly: PRs based on `main` report `Path: .coderabbit.yml` while
PRs based on `v7` report `Organization UI`, so `main`'s copy is
certainly not what is consulted here today.

Rather than pick a model and risk a change that merges cleanly and does
nothing, the entry goes in both places. It is a handful of lines, and
harmless wherever it proves redundant.

If both file copies turn out to be ignored, the configuration
demonstrably in force for these pull requests is **Organization UI**,
and setting the base branch there is the lever that must work — an org
settings change rather than anything a PR can carry.

## The profile is pinned, not defaulted

`reviews.profile` is set to `assertive` explicitly. Reviews on this
branch run on the organisation UI's assertive profile today, and merely
introducing a repository config would otherwise take the schema default
of `chill` and relax them as a silent side effect of enabling
auto-review. The maintenance line keeps the stricter profile; the
default branch, which sets no profile, keeps `chill`.

## Testing performed

- Confirmed `reviews.auto_review.base_branches` against the published
schema: *"Base branches (other than the default branch) to review.
Accepts regex patterns."*
- Confirmed `chill` is the schema default for `reviews.profile`, which
is what made pinning it necessary rather than cosmetic.
- Confirmed the file parses and resolves to the intended values.
- Confirmed `projects/` exists on this branch and holds transient
workspaces, as on `main`, so mirroring that path filter is meaningful
rather than copied blindly.

This cannot be verified before merge, and this PR being skipped is
itself the evidence above. The check is the first pull request opened
against this branch afterwards — both that it is reviewed at all, and
that the review runs assertive.

Note also that `.coderabbit.yml` is not in `test.yml`'s `paths-ignore`,
so this configuration-only change runs the full test matrix. That list
is duplicated across five workflow files with a comment requiring them
to be kept in step, so I left it alone rather than widen this PR.

## Checklist

- [x] All commits are signed off per the DCO.
- [x] The change is scoped to one logical concern.

Signed-off-by: Alexey Orlenko's AI Agent <[email protected]>
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.

2 participants