Branching Strategy¶
This document defines the mandatory branching and pull request rules for all repositories.
π³ Branch Rules¶
main(ormaster) represents production-ready code- Direct commits to
mainare forbidden - All changes MUST be introduced via Pull Requests
- Feature and fix branches MUST be short-lived
π Pull Request Approval Policy¶
- Every Pull Request targeting
mainMUST be approved by: - The Technical Lead, or
- The Scrum Master, or
-
A delegate explicitly assigned by one of them
-
The approver is responsible for ensuring that:
- The implemented changes are aligned with approved User Stories
- Code quality standards are met
- Required security tests have passed
- QA validation has been completed when applicable
β Mandatory Pull Request Checks¶
A Pull Request MAY be approved only if all the following conditions are met:
- βοΈ Linked to at least one User Story or Work Item
- βοΈ CI pipeline executed successfully
- βοΈ Security scans completed with no critical issues
- βοΈ Automated tests passed
- βοΈ QA sign-off provided (when applicable)
π‘οΈ Governance Enforcement¶
- Branch protection policies MUST enforce:
- Minimum one required approver
- Successful pipeline execution
- No bypass of required checks
- Exceptions require explicit approval from Architecture
π Notes¶
- Approval responsibility cannot be automated
- Approval implies accountability for production readiness