Commit Styleguide - green-ecolution/backend GitHub Wiki
This project follows a clear set of commit and branching conventions to ensure a clean and understandable Git history. The following sections explain how to structure your commits according to the Conventional Commits specification and outline how we apply the Gitflow workflow in our development process.
Each commit message should be:
- Short and meaningful (aim for under 72 characters in the subject line)
- Written in english
<type>: <short summary>
feat: add create method for tree clusters
fix: correct DB seed for tree test data
We use the Gitflow workflow to manage branches and releases. You can find examples and more information here.
-
main
: Production-ready code only. Every commit here is deployable. -
develop
: The integration branch for features. Most work is merged here first.
-
feature/*
: New functionality -
fix/*
orbugfix/*
: Fixes -
hotfix/*
: Emergency Fixes -
refactor/*
: Fixes to the code without changing functionality -
release
: For production releases
All changes are submitted via Pull Requests (PRs). If you have merge conflicts please use rebase instead of merge to fix this. As soon as one person approves your PR, merge it into develop.