Skip to content

Latest commit

ย 

History

History
82 lines (64 loc) ยท 2.66 KB

File metadata and controls

82 lines (64 loc) ยท 2.66 KB

๐ŸŒฟ Branch Naming Convention

This document outlines the standardized branch naming convention for the RecCall project.

๐Ÿ“‹ Naming Pattern

All branches must follow this pattern:

<type>/[JIRA-123]-<short-description>

๐Ÿท๏ธ Branch Types

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

๐Ÿ“ Guidelines

โœ… Good Examples

  • feature/RC-001-add-user-authentication
  • bugfix/RC-002-fix-login-validation
  • hotfix/RC-003-security-patch
  • docs/RC-004-update-api-documentation
  • refactor/RC-005-improve-error-handling
  • test/RC-006-add-unit-tests
  • chore/RC-007-update-dependencies

โŒ Bad Examples

  • 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)

๐Ÿ”ง Creating Branches

Using Git CLI

# 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>

Using GitHub CLI

# Create branch and switch to it
gh repo create-branch feature/RC-001-add-user-authentication

๐Ÿšซ Branch Protection

The 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

๐Ÿ”„ Workflow

  1. Create branch following naming convention
  2. Make changes and commit with conventional commits
  3. Push branch to remote repository
  4. Create pull request with proper description
  5. Get approval from code owners
  6. Merge after all checks pass

๐Ÿ“š Related Documentation

โšก