-
Notifications
You must be signed in to change notification settings - Fork 123
Contributing Guidelines
Thank you for contributing to this learning repository!
This guide outlines the standard process for submitting Issues and Pull Requests (PRs) to ensure smooth collaboration and consistent quality.
Issues help track bugs, feature requests, and documentation improvements.
Please review existing issues before creating a new one.
- Describe the issue clearly, including steps to reproduce, expected, and actual results.
- Provide environment details (e.g., OS, Python, MindSpore version).
- Attach logs or screenshots if available.
- Explain the motivation and expected benefit.
- Add examples or usage scenarios if possible.
- Specify the section or file needing updates.
- Suggest clear edits or additions.
- For discussions or questions, state the goal and provide enough context.
π‘ Tip: Always use the Issue Template if provided, and fill in all required fields for clarity.
All code or documentation changes should go through PRs.
Follow the steps below for a clean and reviewable contribution process.
- On GitHub: click "Fork" on the top right.
- Clone your fork and add upstream:
git clone git@github.com:your-username/repo-name.git
cd repo-name
git remote add upstream git@github.com:original-owner/repo-name.git
# Check all the remote repositories
git remote -vInstall required dependencies:
pip install -r requirements.txtFor users in limited network regions, check the alternative setup guide (via Docker image) if available.
Use a descriptive branch name:
git checkout -b [prefix]/short-descriptionHere are some recommended refix options for reference:
-
feature/β new feature -
fix/β bug fix -
docs/β documentation changes -
wip/β work in progress
- Run all unit tests locally.
- Perform linting and style checks using the same tools defined in the CI pipeline.
- Confirm all tests pass before committing any changes.
- Commit changes with a clear message:
git add .
git commit -m "[Prefix] Brief description of changes"git push origin [your-branch-name]- On the original repository, click βCompare & pull request.β
- Fill in the PR template:
Title: [Prefix] Short summary
Description: Explain the purpose, approach, and related issue (e.g., Fixes #123).
Testing: Include key tests or verification steps.
- All PRs trigger automated CI tests (unit tests, lint checks, etc.).
- Monitor the PR Checks panel. If any test fails, click Details, fix the issue, and re-push.
- Only PRs passing all CI checks can be merged.
- Respond promptly to reviewer feedback.
- Commit updates based on comments and push again.
- The PR will auto-update for re-review.
Once approved, a committer will merge your PR. π Thank you for making this project better!