Simple and direct:
- Create your branch from
main. - Make commits in English with conventional commits.
- Open a pull request (PR).
- Get approval.
- Merge and done.
| Prefix | Use | Examples |
|---|---|---|
feat/ |
New features | feat/user-onboarding |
fix/ |
Bug fixes | fix/login-validation |
refactor/ |
Code improvements | refactor/database-queries |
docs/ |
Documentation | docs/api-endpoints |
test/ |
Tests | test/search-algorithm |
| Type | Description | Example |
|---|---|---|
feat: |
New features | feat: implement user auth |
fix: |
Bug fixes | fix: correct cart calc error |
refactor: |
Code restructuring | refactor: modularize order logic |
docs: |
Documentation changes | docs: update installation guide |
test: |
Add or modify tests | test: add patient search tests |
-
Update
main:git switch main git pull origin main
-
Create your branch:
git branch feat/new-feature git switch feat/new-feature
-
Work and commit:
git add . git commit -m "feat: add patient similarity filter"
-
Push your branch to GitHub:
git push -u origin feat/new-feature
-
Open a pull request (PR):
- Go to GitHub.
- Use the default template: Fill in the template when creating the PR.
- PR Title: Clear, follows main commit convention (e.g.
feat: add hybrid search mode). - Description:
- What: Summary of changes.
- Why: Justification.
- How to test: Steps for the reviewer.
- Notes: Anything extra (e.g. breaking changes, impact on other services).
- ✅ Approval from a team member
- ✅ No conflicts with
main - ✅ Correct naming (branches and commits)
- ✅ Updated documentation (if applicable)
- Update: If changes are requested, respond and update your PR.
- No direct merge to
main(always via PR)! - Don't merge code that doesn't compile!
- Don't merge if it breaks existing functionality!
- Mandatory: Use branch and commit naming conventions.
- Delete your branch on GitHub.
- Notify the team about important changes.
- Open an Issue.
- Contact any team member.