This document outlines the standardized branch naming convention for the RecCall project.
All branches must follow this pattern:
<type>/[JIRA-123]-<short-description>
| Type | Description | Example |
|---|---|---|
feature |
New features or enhancements | feature/RC-001-add-user-authentication |
bugfix |
Bug fixes | bugfix/RC-002-fix-login-validation |
hotfix |
Critical production fixes | hotfix/RC-003-security-patch |
release |
Release preparation | release/v1.2.0 |
docs |
Documentation updates | docs/RC-004-update-api-documentation |
refactor |
Code refactoring | refactor/RC-005-improve-error-handling |
test |
Adding or updating tests | test/RC-006-add-unit-tests |
chore |
Maintenance tasks | chore/RC-007-update-dependencies |
feature/RC-001-add-user-authenticationbugfix/RC-002-fix-login-validationhotfix/RC-003-security-patchdocs/RC-004-update-api-documentationrefactor/RC-005-improve-error-handlingtest/RC-006-add-unit-testschore/RC-007-update-dependencies
new-feature(missing type prefix)fix-bug(missing type prefix)feature/add-auth(missing JIRA ticket)feature/RC-001(missing description)feature/RC-001-Add-User-Authentication(uppercase in description)
# Create and switch to new feature branch
git checkout -b feature/RC-001-add-user-authentication
# Create branch from specific commit
git checkout -b bugfix/RC-002-fix-login-validation <commit-hash># Create branch and switch to it
gh repo create-branch feature/RC-001-add-user-authenticationThe main branch is protected with the following rules:
- โ No direct pushes allowed
- โ Requires pull request reviews
- โ Requires status checks to pass
- โ Requires up-to-date branches
- โ Requires linear history
- Create branch following naming convention
- Make changes and commit with conventional commits
- Push branch to remote repository
- Create pull request with proper description
- Get approval from code owners
- Merge after all checks pass