Skip to main content

๐ŸŒฟ Branch Naming Guidelines

To keep our repositories clean, understandable, and collaboration-friendly, we follow a consistent naming convention for Git branches.


๐Ÿงช Naming Formatโ€‹

<type>/<short-description>
  • <type> is the category of work being done
  • <short-description> is a lowercase, hyphen-separated summary of the change

โœ… Accepted Branch Typesโ€‹

TypeDescriptionExample
featureNew feature or enhancementfeature/user-authentication
bugfixFixing a bug or issuebugfix/login-validation-error
refactorInternal code improvements without new behaviorrefactor/db-connection-handler
docsChanges or additions to documentationdocs/add-api-usage-guide
choreRoutine tasks like config updateschore/update-eslint-config
hotfixEmergency fixes to production codehotfix/fix-env-vars
securityVulnerability patches or security upgradessecurity/bump-fastapi-version
testAdding or updating teststest/add-auth-tests

๐Ÿ” Optional: Include Issue Numbersโ€‹

To associate a branch with a GitHub issue:

feature/42-user-registration
bugfix/105-missing-validation

๐Ÿ’ก Best Practicesโ€‹

  • Use lowercase and hyphens (-) for readability
  • Keep descriptions concise and clear
  • Avoid long or vague names like fix-stuff or new-branch
  • Keep each branch focused on one logical change or purpose

Following this convention makes it easier to review, track, and automate contributions across our projects. ๐Ÿš€