Skip to content
Mermaid templates

Trunk-Based Development

Short-lived branches, feature flags, continuous integration into trunk.

Template previewMermaid
Rendering…

Make it your own.

flowchart LR
T[(Trunk / main)] --> B1[short-lived branch A\n< 24h]
T --> B2[short-lived branch B]
B1 -- PR --> T
B2 -- PR --> T
T --> Build[CI build + tests on every push]
Build --> Art[Versioned artifact]
Art --> Deploy[Auto-deploy to prod\nbehind feature flags]
Flags[Feature flag service] -.-> Deploy
Flags -.->|gradual rollout| Users[Users]