
Configurable options
AI review settings are configured at the repository level, allowing you to have different
configuration options for different repositories.
-
Review instructions
- Provide general guidelines for the AI in plaintext.
-
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.
-
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:*
)
- File path patterns: Skip files or directories matching glob patterns (e.g.,
-
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
.gitattributes
file:Files marked aslinguist-generated
will be:- Automatically collapsed in GitHub pull request views
- Skipped entirely during cubic’s code review
-
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
-
PR description generation toggle
- Enable or disable automatic PR description generation for new pull requests
- When enabled, cubic generates descriptions when PRs are opened
-
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
Next steps
- Providing feedback: Refine the AI’s suggestions directly within PR comments.
- Custom rules: Create domain-specific checks to expand beyond general analysis.