You are here to help ECHO and the echopy library? Awesome, feel welcome and read the following sections in order to know how to ask questions and how to work on something.
All members of our community are expected to follow our Code of Conduct. Please make sure you are welcoming and friendly in all of our spaces.
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
To familiarize yourself with the code and procedures, we recommend to get started with:
- review a Pull Request
- fix an Issue
- update the documentation
- make a website
- write a tutorial
This project makes heavy use of git flow. If you are not familiar with it, then the most important thing for you to understand is that:
pull requests need to be made against the develop
branch!
Upon submission of a pull request, you will be asked to sign the Contributor License Agreement digitally through a github-connected service.
If you've noticed a bug or have a question, search the issue tracker to see if someone else in the community has already created a ticket. If not, go ahead and make one!
If this is something you think you can fix, then fork the repository and create a branch with a descriptive name.
A good branch name would be (where issue #325 is the ticket you're working on):
git checkout -b 325-new-fancy-feature
Make sure to add a unit tests for your your code contribution in
test/
. You may use other unit tests as template for your own tests.
Individual unit tests can be run by:
python3 -m unittests test/test_NEWFEATURE.py
-
Ensure the bug was not already reported by searching all issues.
-
If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring.
-
If possible, use the relevant bug report templates to create the issue. Simply copy the content of the appropriate template into a .py file, make the necessary changes to demonstrate the issue, and paste the content into the issue description.
At this point, you're ready to make your changes! Feel free to ask for help; everyone is a beginner at first
Pull requests are supposed to go against the develop
branch, only!
At this point, you should switch back to your develop
branch and make
sure it's up to date with echopy-lib's develop
branch:
git remote add upstream [email protected]:echoprotocol/echopy-lib.git
git checkout develop
git pull upstream develop
Then update your feature branch from your local copy of develop, and push it!
git checkout 325-new-fancy-feature
git rebase develop
git push --set-upstream origin 325-new-fancy-feature
Finally, go to GitHub and make a Pull Request :D
If a maintainer asks you to "rebase" your PR, they're saying that a lot of code has changed, and that you need to update your branch so it's easier to merge.
To learn more about rebasing in Git, there are a lot of good git rebasing resources but here's the suggested workflow:
git checkout 325-new-fancy-feature
git pull --rebase upstream develop
git push --force-with-lease 325-new-fancy-feature
A PR can only be merged into develop
by a maintainer if:
- Pull request goes against
develop
branch. - It has been approved by at least two maintainers. If it was a maintainer who opened the PR, only one extra approval is needed.
- It has no requested changes.
- It is up to date with current
develop
. - Did the contributor sign the CLA
Any maintainer is allowed to merge a PR if all of these conditions are met.
Maintainers need to do the following to push out a release:
git checkout develop
git fetch origin
git rebase origin/develop
# get latest tag
git tag -l
# git flow
git flow release start x.y.z
# bump version in setup.py
git add setup.py; git commit -m "version bump"
git flow release finish
Bundling and pushing the release:
make release