Git Flow
We use a structured Git branching model to ensure smooth collaboration and maintain a clean, reliable codebase. Our workflow is based on the following branches and conventions:
Main Branches
main
The production-ready branch. Code here is always stable and deployable to our production environment.develop
The integration branch for ongoing development. All feature branches are merged here before being promoted tomain.staging
Optional branch for pre-production testing. It serves as a staging area for features before they are merged intomain. Only used if project requires testing with production-like data.
Feature Branches
- Branch Naming
Feature branches follow the pattern:
feature/<jira-ticket-number>-<short-description-in-kebab-case>
Example:feature/ABC-123-user-authentication - Source Branch
Feature branches are created from the latestdevelopbranch.
Bugfix Branches
- Branch Naming
Bugfix branches follow the pattern:
bugfix/<jira-ticket-number>-<short-description-in-kebab-case>
Example:bugfix/ABC-123-fix-login-error - In case there is no Jira ticket, the branch name should be descriptive of the bug being fixed.
- Source Branch
Bugfix branches are created from the branch where the bug was discovered (usuallydevelop).
Production Hotfixes
- Branch Naming
Hotfix branches follow the pattern:
hotfix/<jira-ticket-number>-<short-description-in-kebab-case>
Example:hotfix/ABC-124-resolve-db-timeout - Source Branch
Hotfix branches are created from themainbranch to address critical issues in production. - Procedure
After the hotfix is tested and approved, it is merged back into bothmainanddevelopto ensure the fix is included in future releases.
Commit Messages
- Language
All commit messages must be written in English. - Jira Integration
Ideally, each commit message should include the Jira ticket number at the start (e.g.,ABC-123: Update user authentication). - Clarity
Commit messages should be clear and concise, explaining the purpose of the change. We do not use emojis in commit messages. - Semantic Commit Messages
We also allow semantic commit messages, which follow the format:
<type>(<scope>): <description>, for example:feat(auth): add user login functionality. These should also include the Jira ticket number if applicable.
Automated Checks
- Dangerfile
We use a Dangerfile to automatically check commit and pull request parameters, ensuring adherence to our standards.
Release Tags & Changelog
-
Version Tags Every production release must be tagged with a semantic version number (e.g.,
v1.2.0). Tags are created on themainbranch after a successful production deployment. -
Tagging Convention We follow Semantic Versioning:
MAJOR.MINOR.PATCHMAJOR— Breaking changesMINOR— New features, backward-compatiblePATCH— Bug fixes
-
Changelog Every project maintains a
CHANGELOG.mdin the repository root. Changes are documented per release using the Keep a Changelog format:## [1.2.0] - 2026-03-06 ### Added - User profile editing endpoint ### Fixed - Login timeout on slow connections ### Changed - Increased pagination default from 10 to 20
Changelog entries should be written as part of the PR process — each PR that adds user-facing or API-impacting changes updates the [Unreleased] section. On release, [Unreleased] is renamed to the version number.
- Conventional Commits (Encouraged)
Using conventional commit messages (
feat:,fix:,chore:,docs:,refactor:) makes changelog generation easier and can be automated with tools likestandard-versionorrelease-please.
Environments
- Development, Staging, and Production
We maintain separate environments for development, staging, and production.
Thedevelopbranch is typically deployed to the development environment (dev), and themainbranch is deployed to production (prod). Optionally, astagingbranch can be used and deployed to the staging environment.