You're very welcomed to be a contributor to HPermission! 🎉
This document will show you the best practice of doing some contribution to this repo.
-
Fork HPermission on GitHub
Visit https://github.com/shuosc/HPermission
Click Fork button (top right) to establish a cloud-based fork.
-
Clone fork to local machine
git clone git@github.com:$user/HPermission.git
Set your clone to track upstream repository.
git remote add upstream https://github.com/shuosc/HPermission # you definitely don't want to push directly to upstream git remote set-url --push upstream no_push
-
Branch
We suggest you to create a branch for each feature you want to add or the bug you want to fix.
Before that, get your local master up to date:
# in the project dir git fetch upstream git checkout master git rebase upstream/master
And then do the fork:
git checkout -b myfeature
-
Develop
Just do anything you want to the code!
-
Keep your branch in sync
git fetch upstream git rebase upstream/master
-
Commit
Before you commit, make sure that all the checks and unit tests are passed:
make dev
Then commit your changes.
git commit
-
Push
git push -f origin myfeature
-
Create a pull request
Visit your fork at https://github.com/$user/HPermission (replace $user obviously).
Click the Compare & pull request button next to your myfeature branch.
Edit the description of the pull request to match your change.
Your pull request needs to be reviewed and approved before get merged, we matainers promise to check the pull requests now and then, and you can ask for reviews from one of us if you can reach him ;)
We'll create some good first issue for first time contributors.
We have mentors for every good first issue, feel free ask for help from them.
Feel free to open an issue here!