Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Latest commit

 

History

History
52 lines (44 loc) · 2.68 KB

CONTRIBUTING.md

File metadata and controls

52 lines (44 loc) · 2.68 KB

Want to contribute? Great! First, read this page (including the small print at the end).

Before you contribute

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.

Code reviews

All submissions, including submissions by project members, require review. We use Github pull requests for this purpose.

For Crisis Info Hub team members

  1. Make sure that you are a member of the team. Ask @giencke to add you if you are not.
  2. Install hub commandline tool.
    https://github.com/github/hub
  3. Create a new branch, prefixed with your username.
    $ git checkout -b $USER-your-new-feature
  4. Make changes and commit. Repeat the step until you are ready for code review.
    $ git commit -a
  5. Push your local changes to the remote repository.
    $ git push -u origin $USER-your-new-feature
  6. Create a new pull request. (-i is optional, but strongly encouraged.)
    $ hub pull-request -i <issue #>
  7. The pull request will be reviewed by one of the code reviewers (*) and merged to the master branch after addressing reviewer's comments.

For non-team members

  1. Fork google/crisis-info-hub project on Github.
  2. 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
  3. Create a new pull request.
  4. The pull request will be reviewed by one of the code reviewers (*) and merged to the master branch after addressing reviewer's comments.

The small print

Contributions made by corporations are covered by a different agreement than the one above, the Software Grant and Corporate Contributor License Agreement.