Skip to main content
When a feature does not fit in a reviewable PR, it is split into sub-PRs that merge into an integration branch. Only the final PR reaches develop.
develop → integration branch feature/scope/name; three sub-PRs merge into the integration branch without CI; one final PR to develop runs the full CI once.

Integration branch with sub-PRs

Why an integration branch

CI, the AI reviews and the initiative gates only run on pull requests targeting develop (or release and master). A PR targeting any other branch only kicks off the lightweight title and label jobs, never CI. That is why: PRs stacked directly on develop caused the most expensive days of October: every merge forced a rebase and a new CI run on every PR that followed.

Recipe

1

Register the tasks

In the initiative’s tracker.yml, add one task per sub-PR (or per area). They will all point to the final PR.
2

Create the integration branch

3

One sub-PR per part

Each sub-PR is around 600 lines or fewer and gets a human review. The pre-push hook runs the same checks as on any branch. It merges into the integration branch with a squash.
4

Update the branch only when needed

Bring develop into the integration branch only if there is a conflict, or right before the final PR:
5

Final PR to develop

Declare the initiative and every task from the sub-PRs, with this PR’s number in their prs. Follow the Level 2 recipe from the draft onward: pr-check, one initiatives:review, ready, one push per round.
Sub-PRs have no CI, AI reviews or initiative gates. Responsibility for quality lies with the pre-push hook, the local tests and the human reviewer. Do not use --no-verify.

When not to use an integration branch

  • When the parts are independent of each other: then they are several Level 2s, not a Level 3.
  • When the work lasts more than two weeks or changes something users can see: it is a Level 4.

Checklist

  • Integration branch feature/<scope>/<name> from develop.
  • Sub-PRs …-part-N targeting the integration branch, ≤ ~600 lines, with a human review.
  • develop is brought in only on conflicts or before the final PR.
  • Final PR to develop as a draft, declaring every task.
  • One push per review round on the final PR.