feature/- For new features and enhancementsbugfix/- For bug fixeshotfix/- For urgent production fixesrelease/- For release branchesdocs/- For documentation updatesrefactor/- For code refactoringtest/- For testing-related changes
- Use lowercase letters, numbers, and hyphens only
- Format:
{prefix}/{ticket-number}-{brief-description} - Examples:
feature/GH-123-user-authenticationbugfix/GH-456-fix-login-validationhotfix/GH-789-security-patch
<type>(<scope>): <subject>
<body>
<footer>
feat- New featurefix- Bug fixdocs- Documentation changesstyle- Formatting, missing semicolons, etc.refactor- Code refactoringtest- Adding testschore- Maintenance tasks
- Subject line should be 50 characters or less
- Use imperative mood ("Add feature" not "Added feature")
- No period at the end of subject line
- Body should explain what and why, not how
- Reference issue numbers in footer
feat(auth): implement OAuth2 authentication
- Add OAuth2 provider integration
- Include user profile sync
- Setup secure token storage
Closes #123
- Format:
[Type] Brief description - Example:
[Feature] Add user authentication system
## Description
Brief description of changes
## Changes Made
- Detailed bullet points of changes
## Testing
- Description of testing performed
## Screenshots
If applicable
## Checklist
- [ ] Tests added/updated
- [ ] Documentation updated
- [ ] Code follows style guidelines
- [ ] Self-review completed-
Code Functionality
- Meets requirements
- Handles edge cases
- Error handling implemented
-
Code Quality
- Follows coding standards
- Properly documented
- No duplicate code
- Efficient implementation
-
Testing
- Unit tests included
- Integration tests if needed
- Edge cases covered
- Be constructive and specific
- Explain reasoning for suggested changes
- Use a respectful tone
- Reference documentation or examples when applicable
├── .github/
│ ├── ISSUE_TEMPLATE/
│ └── workflows/
├── docs/
├── src/
├── tests/
├── .gitignore
├── README.md
└── CONTRIBUTING.md
-
README.md
- Project description
- Setup instructions
- Usage examples
- Contributing guidelines link
-
CONTRIBUTING.md
- Development setup
- Coding standards
- Pull request process
- Testing guidelines
-
.gitignore
- IDE files
- Build artifacts
- Dependencies
- Environment files
- Create feature branch from
develop - Make changes and commit regularly
- Keep branch updated with
develop - Submit PR when ready
- Address review comments
- Merge after approval
- Delete feature branch
main- Production codedevelop- Development coderelease/*- Release candidates
Remember to enforce these standards through:
- Branch protection rules
- PR templates
- Automated checks
- Code review policies