Skip to content

Migrate AI code review tooling from CodeRabbit to Cubic#143

Merged
admdly merged 5 commits into
mainfrom
chore/ai-code-review
Jul 9, 2026
Merged

Migrate AI code review tooling from CodeRabbit to Cubic#143
admdly merged 5 commits into
mainfrom
chore/ai-code-review

Conversation

@admdly

@admdly admdly commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary by cubic

Migrates code review tooling from CodeRabbit to Cubic by removing .coderabbit.yaml and adding cubic.yaml. Enables high-sensitivity automated reviews, skips Draft/WIP titles and bot branches, generates PR descriptions unless the author wrote one, and only auto-approves low-risk changes.

  • Bug Fixes
    • Fixed Draft/WIP title matching by changing to "Draft*" and "WIP*".
    • Added a trailing newline for formatter compliance.

Written for commit 5455150. Summary will update on new commits.

admdly added 2 commits July 9, 2026 17:47
Replaces .coderabbit.yaml with cubic.yaml to migrate AI code review tooling from CodeRabbit to Cubic.
@admdly admdly self-assigned this Jul 9, 2026
Copilot AI review requested due to automatic review settings July 9, 2026 17:03
@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR removes the existing .coderabbit.yaml configuration file and adds a new cubic.yaml file that configures Cubic AI review behavior, including review sensitivity, auto-approval rules, ignore patterns for branches and labels, PR description generation, and issue fix settings.

Changes

AI review tool configuration migration

Layer / File(s) Summary
Add Cubic AI review configuration
cubic.yaml
Adds a new configuration file setting review sensitivity, auto-approve rules for low-risk changes, external contributor handling, ignore rules for renovate/dependabot branches and draft/WIP titles, PR description generation, and issue/PR fix behaviors with coding_agent_provider: cubic.
Remove CodeRabbit configuration
.coderabbit.yaml
Deletes the previous CodeRabbit review configuration, including profiles, auto-review settings, chat settings, and knowledge-base linking.

Possibly related PRs

  • FOSSBilling/api#142: Adds and configures .coderabbit.yaml, directly conflicting with this PR's removal of that same file.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly summarizes the main change: migrating review tooling from CodeRabbit to Cubic.
Description check ✅ Passed The description matches the changeset by describing the CodeRabbit removal, Cubic config addition, and review behavior changes.

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

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 9, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
api 5455150 Commit Preview URL

Branch Preview URL
Jul 09 2026, 05:15 PM

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Migrates repository-level AI code review configuration from CodeRabbit to Cubic by replacing the existing CodeRabbit config with a new cubic.yaml configuration file at the repo root.

Changes:

  • Added cubic.yaml with Cubic review, ignore, PR description, and issue-fix settings.
  • Removed the legacy .coderabbit.yaml configuration file.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
cubic.yaml Introduces Cubic repository configuration for AI review/automation behavior and ignore rules.
.coderabbit.yaml Removes CodeRabbit configuration as part of the migration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cubic.yaml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@coderabbitai coderabbitai 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.

Warning

CodeRabbit couldn't request changes on this pull request because it doesn't have sufficient GitHub permissions.

Please grant CodeRabbit Pull requests: Read and write permission and re-run the review.

👉 Steps to fix this

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@cubic.yaml`:
- Around line 20-21: Remove the unsupported
auto_approve_rules.exclude_external_contributors setting from the configuration
and leave auto_approve_rules limited to its valid include/exclude glob paths.
The external contributor behavior is already handled by
external_contributors_require_manual_review, so update the cubic configuration
to use that existing setting and keep the auto_approve_rules section valid.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: d520e6e2-b2da-488e-9acd-045c4dd65df3

📥 Commits

Reviewing files that changed from the base of the PR and between b5efe10 and 2afb32a.

📒 Files selected for processing (2)
  • .coderabbit.yaml
  • cubic.yaml
💤 Files with no reviewable changes (1)
  • .coderabbit.yaml

Comment thread cubic.yaml
coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 9, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 2 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread cubic.yaml Outdated
Comment thread cubic.yaml Outdated
@cubic-dev-ai

cubic-dev-ai Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

I've successfully fixed both issues in cubic.yaml:

Issue 1: Fixed glob patterns for Draft/WIP PR titles (cubic.yaml:30-31)

Changed "[Draft]*" and "[WIP]*" to "Draft*" and "WIP*". The brackets were creating character classes that matched any title starting with D/r/a/f/t or W/I/P (e.g., "fix", "refactor", "add" would all be ignored). The corrected patterns now properly match titles starting with "Draft" or "WIP" as intended.

Issue 2: Added missing trailing newline (cubic.yaml:41)

Added a trailing newline at the end of the file to match the repo's Prettier formatting expectations.

✅ All tests passing (232 tests passed)

The changes ensure that the ignore patterns work correctly and the config file follows the proper formatting standards.

Pushed commits to chore/ai-code-review.

…c.yaml

- Change `[Draft]*` and `[WIP]*` to `Draft*` and `WIP*` to properly match PR titles
- Add missing trailing newline for Prettier compliance

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

0 issues found across 1 file (changes from recent commits).

Auto-approved: Migrates AI review configuration from CodeRabbit to Cubic. Only config files changed, no source code or logic changes. Low risk.

Re-trigger cubic

@admdly admdly merged commit 38cde7a into main Jul 9, 2026
10 checks passed
@admdly admdly deleted the chore/ai-code-review branch July 9, 2026 17:18
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