> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Level 3 · Multi-PR feature

> A feature that needs several PRs: an integration branch, sub-PRs without CI and a single final PR to develop.

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.](https://mintcdn.com/bbrands/HbBhTZK1FiD1UtlY/images/bbrands-lab/level-3-integration-branch.svg?fit=max\&auto=format\&n=HbBhTZK1FiD1UtlY\&q=85\&s=3aa73298637f34ef1c4e9729d5f8daa4)

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:

| Strategy | Full CI runs | Rebases |
| - | - | - |
| N PRs stacked directly on develop | N, plus N queue runs | Cascading: every merge forces a rebase of the rest |
| **Integration branch** | **1, plus 1 queue run** | One, before the final PR |

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**

```bash theme={null}
git switch develop && git pull
git switch -c feature/payment/debt-origination
git push -u origin HEAD
```

**3. One sub-PR per part**

```bash theme={null}
git switch -c feature/payment/debt-origination-part-1
# ... commits ...
git push -u origin HEAD
gh pr create --base feature/payment/debt-origination --fill
```

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:

```bash theme={null}
git switch feature/payment/debt-origination
git merge origin/develop
```

**5. Final PR to develop**

```bash theme={null}
gh pr create --draft --base develop --head feature/payment/debt-origination --fill
```

Declare the initiative and **every** task from the sub-PRs, with this PR's number in their
`prs`. Follow the [Level 2](https://docs.bbrands.io/bbrands-lab/pull-requests/level-2-development.md) recipe from the
draft onward: `pr-check`, one `initiatives:review`, ready, one push per round.

> [!WARNING]
>
> 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`.**

[In force since Wave 0](https://docs.bbrands.io/bbrands-lab/pull-requests/waves-roadmap.md)
The integration branch is the recommended approach for any change that needs more than one PR.

## 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](https://docs.bbrands.io/bbrands-lab/pull-requests/level-4-module-initiative.md).

## 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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.