mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-23 01:50:13 +08:00
1.9 KiB
1.9 KiB
🌿 Branching Strategy
Cherry Studio follows a structured branching strategy to maintain code quality and streamline the development process:
Main Branches
-
main: Production-ready branch containing stable releases- All code here is thoroughly tested and ready for production
- Direct commits are not allowed - changes must come through pull requests
- Each merge to main represents a new release
-
develop(default): Primary development branch- Contains the latest delivered development changes for the next release
- Relatively stable but may contain features in progress
- This is the default branch for development
Contributing Branches
When contributing to Cherry Studio, please follow these guidelines:
-
For bug fixes:
- Create a branch from
develop - Name format:
fix/issue-number-brief-description - Submit pull request back to
develop
- Create a branch from
-
For new features:
- Create a branch from
develop - Name format:
feature/issue-number-brief-description - Submit pull request back to
develop
- Create a branch from
-
For documentation:
- Create a branch from
develop - Name format:
docs/brief-description - Submit pull request back to
develop
- Create a branch from
-
For critical hotfixes:
- Create a branch from
main - Name format:
hotfix/issue-number-brief-description - Submit pull request to both
mainanddevelop
- Create a branch from
Pull Request Guidelines
- Always create pull requests against the
developbranch unless fixing a critical production issue - Ensure your branch is up to date with the latest
developchanges before submitting - Include relevant issue numbers in your PR description
- Make sure all tests pass and code meets our quality standards
- Critical hotfixes may be submitted against
mainbut must also be merged intodevelop - Add a photo to show what is different if you add a new feature or modify a component in the UI.