How to contribute¶
Code contribution¶
Based on:
- http://nvie.com/posts/a-successful-git-branching-model/
- https://help.github.com/articles/fork-a-repo/
- https://help.github.com/articles/about-pull-requests/
- https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/
- https://www.atlassian.com/git/tutorials/comparing-workflows/forking-workflow
- https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow
Note
Following procedure is for Windows platform
If you want to contribute your code to pyBio, please follow this steps:
Setup¶
Fork pyBio
- Navigate to https://github.com/genadijrazdorov/pybio
- Fork your own copy of pyBio by cliking on Fork button
- You are navigated to your copy GitHub page
Clone your fork locally
Click on Clone or download button
Copy your fork url by clicking on Copy to clipboard button
Open Git Bash console
Change directory to desired one:
$ cd path/to/local/clone/parent
Clone your fork:
$ git clone <Shift+Ins>
Add upstream repo
$ cd pybio $ git remote add upstream https://github.com/genadijrazdorov/pybio.git
Feature development¶
Checkout develop branch:
$ git checkout develop
Sync with upstream:
$ git pull upstream
Create and checkout new feature branch:
$ git checkout -b new-feature-name
Develop
- Create documentation, unit-tests and implementation for new feature
- Check your implementation by running doctests and pytests
- Add and commit your changes
Push your changes to origin:
$ git push -u origin
Create pull request online
- Follow instructions from: https://help.github.com/articles/creating-a-pull-request-from-a-fork/
Discuss and modify your code with pyBio developers
After feature branch is merged sync your fork
Pull from upstream:
$ git checkout develop $ git pull upstream
Push to origin
$ git push