What does the Option “Only analyze PRs targeting the branch selected in the project repository configuration” Mean?
Overview
This option in the Pull Request Integration configuration determines which pull requests (PRs) CodeScene will analyze.
When enabled, CodeScene only runs delta analysis for PRs that target the branch you’ve configured as the reference analysis branch in your project repository (typically main or master).
You can check this branch under:
On-prem: Project Configuration → General → Repository → Ref
Cloud: Project Configuration → Repositories → Repository Ref
When this option is enabled
CodeScene will analyze only the PRs that merge into the configured branch in the CodeScene project configuration.
If a PR targets any other branch - for example, release/1.2, staging, or develop -CodeScene will skip the delta analysis, meaning no automated comments or reports will be posted for that PR.
This behavior is especially useful in repositories with complex branching strategies, where you want CodeScene to focus exclusively on the final integration branch, ensuring that quality gates are enforced only where they matter most.
Example
Repository branch set in CodeScene: main
Pull Request Target Branch | Delta Analysis |
| ✅ Analyzed |
| ❌ Skipped |
| ❌ Skipped |
When this option is disabled
CodeScene will analyze all pull requests, regardless of their target branch.
This means delta analysis will also run for PRs such as:
feature → developbugfix → release/2.0
Summary
Option State | Behavior |
Enabled | Analyze only PRs targeting the configured branch (e.g., |
Disabled | Analyze all PRs, regardless of target branch |