<aside> 🔁 Synced from GitHub #4933a01041f7. Edit in the paidhr-system-docs repository, not here: changes made in Notion are overwritten.
</aside>
staging.develop and test it there.staging (a second PR from the same branch).main/master as a whole at release.flowchart LR
STG[staging] -->|1. branch off| F[feature branch]
F -->|2. PR, test here| DEV[develop]
F -->|3. PR, same branch| STG
STG -->|4. release, whole branch| MAIN[main / master]
DEV -. never .-> STG
Why: develop is a test bed carrying work not cleared for release. If a branch were cut from develop, promoting it would drag that unreleased work into staging and then production.
develop. If the code you need only exists on develop, find the staging-based branch for that feature (often named *-staging-pr) or wait for it to reach staging.| Lineage | Branch | Use |
|---|---|---|
| Production | main |
Hotfixes |
| Staging | staging |
Cut new work here |
| Dev | develope |
Backport only |
develop mainline, release/x.x.x, feature/-name, hotfix/x.x.x from master.