Git Workflow¶
Atlas ERP follows a simplified GitHub Flow model.
Branching¶
main: The default branch. It is protected and always deployable. Production deployments happen automatically from this branch.- Feature Branches: Create a new branch off
mainfor every new feature or bug fix. - Format:
type/short-description - Examples:
feat/add-invoice-pdf,fix/login-crash,chore/update-deps
Commit Messages¶
We strictly follow the Conventional Commits specification. This allows us to automatically generate changelogs and determine semantic versioning bumps.
Format:
Types: - feat: A new feature - fix: A bug fix - docs: Documentation only changes - style: Changes that do not affect the meaning of the code (white-space, formatting, etc) - refactor: A code change that neither fixes a bug nor adds a feature - perf: A code change that improves performance - test: Adding missing tests or correcting existing tests - chore: Changes to the build process or auxiliary tools and libraries
Example:
Pull Requests¶
- Draft PRs: Open a Draft PR early if you want feedback on the approach.
- CI Checks: All PRs must pass the GitHub Actions CI pipeline (Linting, Tests, Build).
- Review: At least one approving review is required before merging.
- Squash and Merge: When merging, use "Squash and Merge" to keep the
mainbranch history clean. Ensure the squash commit message follows the Conventional Commits format.