Branch Workflow
Overview
This document outlines the standardized branch workflow to be followed during development and deployment.
Branch Structure
1. Feature Branch
- Created from the
stagingbranch. - Used for developing new features.
- Naming should follow the agreed feature naming convention.
2. promotion/staging
- Developers push their local code to this branch.
- Automated checks are performed:
- Linting
- Ruff validations
- Acts as a validation layer before merging into staging.
3. staging
- Developers raise a Pull Request (PR) from
promotion/staging. - Code is reviewed and approved before merging.
- Serves as the integration branch for tested features.
4. release
- Created by the DevOps team from the
productionbranch. - Follows a predefined naming convention.
- A PR is raised from
stagingto thereleasebranch. - Used for final validation and release preparation.
5. production
- Final deployment branch.
- DevOps team raises a PR from the
releasebranch. - Only fully tested and approved code is merged here.
- Triggers production deployment.
Workflow Summary
- Create a feature branch from
staging. - Push development code to
promotion/staging. - Raise PR to
stagingafter validations pass. - DevOps creates a
releasebranch fromproduction. - Merge
stagingintoreleasevia PR. - Merge
releaseintoproductionfor deployment.
Notes
- All merges must go through Pull Requests.
- Code reviews are mandatory before merging.
- Follow naming conventions strictly for all branches.