Merge Targets
Configure which branches Candid compares against.
CLI Usage
/candid-review --merge-target develop
/candid-review --merge-target develop --merge-target mainConfig File
{
"mergeTargetBranches": ["develop", "main"]
}How It Works
Candid tries each branch in order and uses the first one that exists.
You’ll see which branch was selected in the output:
Comparing against: developCommon Configurations
| Workflow | Config |
|---|---|
| GitHub Flow | ["main"] |
| Git Flow | ["develop", "main"] |
| Trunk-based | ["trunk"] |
| CI (remote branches) | ["origin/main", "main"] |
Default Behavior
If not specified, Candid uses:
["main", "stable", "master"]Fallback Chain
The array order matters. If develop doesn’t exist, Candid falls back to main:
{
"mergeTargetBranches": ["develop", "main"]
}Last updated on