Contributing code - prtos-project/prtos-hypervisor GitHub Wiki
Contributing Code Guide
PRTOS uses Github to host its source code, if you wish to contribute code please use the PR (Pull Request) process of github:
-
create Issue - For the larger changes (such as new features, large refactoring, etc.) it is best to first open an issue to discuss, and smaller improvements (such as document improvements, bugfixes, etc.) can be sent directly to PR
-
Fork PRTOS - Click the Fork button in the upper right corner
-
Clone Your own fork:
git clone https://github.com/$userid/prtos-hypervisor.git
- If your fork is out of date, you need to manually sync: Sync
-
Create your own feature branch from main:
git checkout -b $my_feature_branch main
-
Make changes on $my_feature_branch and push the changes to your fork
-
Create a [Pull Request] from your fork's $my_feature_branch branch to the main project's dev branch - here Click on compare across forks and select the required fork and branch to create the PR
-
Waiting for review, need to continue to improve, or be Merge!
When submitting code, please observe the following rules to improve the quality of the code:
- Format your codes with clang-format -i
your_new_file_changed
- Run your code with Local CI Test to make sure there are no regression issues. Just run
bash scripts/run_test.sh check-all
in the project root directory.