-
Feature branches:
feature/{issue_number}-{short_description}- Example:
feature/123-add-new-feature
- Example:
-
Bugfix branches:
bugfix/{issue_number}-{short_description}- Example:
bugfix/456-fix-bug
- Example:
-
Hotfix branches:
hotfix/{version_number}-{short_description}- Example:
hotfix/1.0.1-security-patch
- Example:
-
Release branches:
release/{version_number}- Example:
release/1.0.0
- Example:
-
Branch Targeting:
- Feature branches must be merged into
develop. - Bugfix branches must be merged into
develop. - Hotfix branches must be merged into both
developandmain.
- Feature branches must be merged into
-
Pull Request Title:
- Use a concise and descriptive title summarizing the changes.
-
Description:
- Provide a detailed description of the changes made.
- Include any relevant context, issues addressed, or dependencies.
-
Reviewers:
- Assign at least one team member to review the pull request.
-
Labels:
- Apply appropriate labels such as
feature,bugfix, orhotfix.
- Apply appropriate labels such as
-
Tests:
- Ensure that automated tests pass successfully.
- Include manual testing instructions if applicable.
-
Documentation:
- Update documentation for any relevant changes.
-
Reviewers:
- Reviewers should thoroughly inspect the code changes.
- Provide constructive feedback and suggest improvements.
-
Discussion:
- Address any comments or concerns raised during the review.
- Collaborate with the author to resolve issues.
-
Approval:
- Require approval from at least one reviewer before merging.
-
Squash Commits:
- Squash multiple commits into a single, logical commit before merging.
-
Merge Commits:
- Use "Merge pull request" for feature and bugfix branches.
- Use "Squash and merge" for hotfix branches.
-
Delete Branch:
- Delete the feature, bugfix, or hotfix branch after merging.
# Create a new feature branch
git checkout -b feature/123-add-new-feature
# Push the branch to remote
git push origin feature/123-add-new-feature
# Create a pull request targeting 'develop'
# Ensure tests pass and address reviewer feedback