Want to contribute? Great! First, read this page (including the small print at the end).
Before we can use your code, you must sign the Google Individual Contributor License Agreement (CLA), which you can do online. The CLA is necessary mainly because you own the copyright to your changes, even after your contribution becomes part of our codebase, so we need your permission to use and distribute your code. We also need to be sure of various other things—for instance that you'll tell us if you know that your code infringes on other people's patents. You don't have to sign the CLA until after you've submitted your code for review and a member has approved it, but you must do it before we can put your code into our codebase. Before you start working on a larger contribution, you should get in touch with us first through the issue tracker with your idea so that we can help out and possibly guide you. Coordinating up front makes it much easier to avoid frustration later on.
All submissions, including submissions by project members, require review. We use Github pull requests for this purpose.
- Make sure that you are a member of the team. Ask @giencke to add you if you are not.
- Install hub commandline tool.
https://github.com/github/hub - Create a new branch, prefixed with your username.
$ git checkout -b $USER-your-new-feature
- Make changes and commit. Repeat the step until you are ready for code review.
$ git commit -a
- Push your local changes to the remote repository.
$ git push -u origin $USER-your-new-feature
- Create a new pull request. (-i is optional, but strongly encouraged.)
$ hub pull-request -i <issue #>
- The pull request will be reviewed by one of the code reviewers (*) and merged to the master branch after addressing reviewer's comments.
- Fork google/crisis-info-hub project on Github.
- Make changes and push to your fork. Repeat the step until you are ready for code review.
$ git commit -a
$ git push -u origin $YOUR_BRANCH
- Create a new pull request.
- The pull request will be reviewed by one of the code reviewers (*) and merged to the master branch after addressing reviewer's comments.
Contributions made by corporations are covered by a different agreement than the one above, the Software Grant and Corporate Contributor License Agreement.