Branch events express release intent
How feature, develop, release, main, and hotfix branch events govern pipeline validation and environment promotion while preserving tested artifact identity. · advanced
Gitflow assigns roles to branches; pipeline configuration turns those roles into actions. A feature branch starts from develop and returns through a pull request. Required checks should validate the proposed integration, not just the isolated feature tip. After merging, validate the resulting develop revision because concurrent changes can alter the combined result.
An update to develop can deploy to integration, while a release branch cut from develop can produce staging candidates. A protected main update or release tag can request production promotion. These are explicit policy choices, not Git behavior: a branch name neither grants deployment authority nor proves that its current contents passed the required checks.
| Branch event | Validation purpose | Example deployment policy |
|---|---|---|
| Feature pull request | Proposed integration checks | No production access |
| Develop update | Combined-change validation | Shared integration |
| Release update | Candidate qualification | Staging |
| Main update or tag | Release eligibility checks | Gated production promotion |
| Hotfix update | Urgent-fix qualification | Controlled release path |