- Updated links in CONTRIBUTING.md and README.md to point to the correct Chinese documentation paths. - Removed outdated files including the English and Chinese versions of the branching strategy, contributing guide, and test plan documents. - Cleaned up references to non-existent documentation in the project structure to streamline the contributor experience.
2.4 KiB
2.4 KiB
🌿 Branching Strategy
Cherry Studio implements a structured branching strategy to maintain code quality and streamline the development process.
Main Branches
-
main: Main development branch- Contains the latest development code
- Direct commits are not allowed - changes must come through pull requests
- Code may contain features in development and might not be fully stable
-
release/*: Release branches- Created from
mainbranch - Contains stable code ready for release
- Only accepts documentation updates and bug fixes
- Thoroughly tested before production deployment
- Created from
For details about the testplan branch used in the Test Plan, please refer to the Test Plan.
Contributing Branches
When contributing to Cherry Studio, please follow these guidelines:
-
Feature Branches:
- Create from
mainbranch - Naming format:
feature/issue-number-brief-description - Submit PR back to
main
- Create from
-
Bug Fix Branches:
- Create from
mainbranch - Naming format:
fix/issue-number-brief-description - Submit PR back to
main
- Create from
-
Documentation Branches:
- Create from
mainbranch - Naming format:
docs/brief-description - Submit PR back to
main
- Create from
-
Hotfix Branches:
- Create from
mainbranch - Naming format:
hotfix/issue-number-brief-description - Submit PR to both
mainand relevantreleasebranches
- Create from
-
Release Branches:
- Create from
mainbranch - Naming format:
release/version-number - Used for final preparation work before version release
- Only accepts bug fixes and documentation updates
- After testing and preparation, merge back to
mainand tag with version
- Create from
Workflow Diagram
Pull Request Guidelines
- All PRs should be submitted to the
mainbranch unless fixing a critical production issue - Ensure your branch is up to date with the latest
mainchanges before submitting - Include relevant issue numbers in your PR description
- Make sure all tests pass and code meets our quality standards
- Add before/after screenshots if you add a new feature or modify a UI component
Version Tag Management
- Major releases: v1.0.0, v2.0.0, etc.
- Feature releases: v1.1.0, v1.2.0, etc.
- Patch releases: v1.0.1, v1.0.2, etc.
- Hotfix releases: v1.0.1-hotfix, etc.