Within your project’s settings, the AI review section offers controls to tailor the reviewer’s behavior. AI review settings

Configurable options

AI review settings are configured at the repository level, allowing you to have different configuration options for different repositories.
  1. Review instructions
    • Provide general guidelines for the AI in plaintext.
  2. Library & framework versions
    • Specify or override detected versions (e.g., React 18, Django 4) to improve suggestion accuracy.
    • Note that, by default, cubic will try to automatically detect the common libraries and versions they use to ensure that it tailors its reviews to those specific ones.
  3. Ignore patterns Define comprehensive patterns to control which pull requests and files are reviewed:
    • File path patterns: Skip files or directories matching glob patterns (e.g., dist/, *.test.ts)
    • Head branch patterns: Ignore PRs from specific branches (e.g., feature/*, hotfix/*)
    • Base branch patterns: Skip PRs targeting certain branches (e.g., staging, develop)
    • PR label patterns: Bypass review for PRs with specific labels (e.g., wip, skip-review)
    • PR title patterns: Ignore PRs with titles matching patterns (e.g., Draft:*, WIP:*)
  4. Exclude generated files For large repositories, you can tell cubic to ignore files that don’t require review. This is handy for:
    • Data files that don’t need to be reviewed
    • Auto‑generated code produced by build or code‑gen tools
    • Any other files that would make a pull request too large for cubic to process
    You can do this by marking files as generated in your repository’s .gitattributes file:
    # Exclude specific files
    docs/data.txt linguist-generated=true
    
    # Exclude file types
    *.csv linguist-generated=true
    *.pb.go linguist-generated=true
    
    # Exclude entire directories
    data/* linguist-generated=true
    generated/* linguist-generated=true
    
    Files marked as linguist-generated will be:
    • Automatically collapsed in GitHub pull request views
    • Skipped entirely during cubic’s code review
  5. Automatic PR approval
    • When enabled, cubic will automatically approve pull requests when no issues are found
    • Disabled by default to prevent bypassing branch protection rules
    • Only available when general AI review is enabled

PR description settings

Control how AI generates PR descriptions for your repository through the dedicated Descriptions tab.

Available options

  1. PR description generation toggle
    • Enable or disable automatic PR description generation for new pull requests
    • When enabled, cubic generates descriptions when PRs are opened
  2. Custom instructions
    • Provide specific guidelines for how PR descriptions should be formatted
    • Instructions are applied to all AI-generated descriptions in the repository
    • Leave empty to use cubic’s default description format
Access these settings from the Descriptions tab in your AI review settings.

Next steps

  • Providing feedback: Refine the AI’s suggestions directly within PR comments.
  • Custom rules: Create domain-specific checks to expand beyond general analysis.