This guide describes how we work with pull requests at BBrands Lab, from a one-line fix to a
module initiative that lasts weeks. It is written for the end state of the CI optimization plan.
Every rule that depends on a wave carries a badge that says whether it is already in force or
when it arrives.
Why it matters
Every push to a pull request that is ready for review kicks off around 40 jobs in GitHub Actions: the CI of each affected project, the AI reviews and the policy checks. The merge queue runs the CI again on the merge result. Working with a good method does more than protect quality: it also determines how many runner minutes we consume and how long we wait.Principles
One intent per PR
A PR solves one thing. If the title needs an “and”, it is probably two PRs.
Draft first
Every PR starts as a draft. CI does not run on drafts, so iterating there costs no runner
minutes.
One push per round
Collect every fix from a review round and push them all at once.
Verify locally
The git hooks run lint, types, affected tests and the initiative policy before the push. If
something fails, it fails on your machine, which is free.
Integrate often
No branch lives more than about two weeks without being merged. Large changes go behind a
feature flag and land in phases.
Everything has an initiative
Every PR declares its initiative and the
tracker.yml tasks it advances.The four scope levels
Decide the level before you create the branch. Each level has its own branch recipe, reference size and expected CI cost.What changes with the optimization waves
The rules in this guide already apply. The waves change how much each step costs in CI, not the way we work: Full details in the waves roadmap.How to read this section
1
Pick the level
Use the decision tree.
2
Follow the level's recipe
Each level page has its own end-to-end checklist.
3
Learn the lifecycle
Lifecycle and checks,
commits and titles and
review apply to every level.
4
Watch the cost
CI and cost per PR explains what each push kicks off.