Skip to content

Add a shared CodeRabbit configuration to cut down on review noise #325

Backlog

Description

@swissspidy

CodeRabbit currently runs with its defaults in every repository ("No configuration file from this repository applied"). That causes a lot of churn, especially on long-lived contributor PRs:

  • Re-reviews on every push. It re-reviews each new push, including a plain "Merge branch 'main'" or a GitHub "Update branch". This regularly brings up threads about lines the PR didn't change.
  • Rate limits. The free OSS plan allows about one review per hour per repository. Batches of maintenance pushes (merging main into several PRs) queue reviews for hours.
  • Generated files. It reviews files we generate or sync, such as README.md (from wp scaffold package-readme), the synced workflows and composer.lock.
  • Bot PRs. It reviews automated PRs such as "Update file(s) from wp-cli/.github", "Regenerate README file" and Dependabot updates.

Proposal

Add a .coderabbit.yaml here and sync it like the other shared files. That means adding ^\.coderabbit\.yaml to FILE_PATTERNS and .coderabbit.yaml to the paths filter in .github/workflows/sync-workflows.yml.

# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
reviews:
  auto_review:
    # Re-reviews only happen on request ("@coderabbitai review"), so merging
    # main into a PR or clicking "Update branch" no longer triggers one.
    auto_incremental_review: false
    ignore_title_keywords:
      - "Update file(s) from"
      - "Regenerate README file"
    ignore_usernames:
      - "dependabot[bot]"
      - "github-actions[bot]"
  path_filters:
    - "!README.md"
    - "!composer.lock"
    - "!.github/workflows/**"
    - "!.github/actionlint.yml"
    - "!.actrc"
    - "!.editorconfig"
    - "!AGENTS.md"

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementscope:meta

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions