1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
Contributing
============
All contributions are welcome to this project.
Contributor License Agreement
-----------------------------
Before a contribution can be merged into this project, please fill out
the Contributor License Agreement (CLA) located at::
https://opensource.box.com/cla
To learn more about CLAs and why they are important to open source
projects, please see the `Wikipedia
entry <https://en.wikipedia.org/wiki/Contributor_License_Agreement>`_.
How to contribute
-----------------
- **File an issue** - if you found a bug, want to request an
enhancement, or want to implement something (bug fix or feature).
- **Send a pull request** - if you want to contribute code. Please be
sure to file an issue first.
Pull request best practices
---------------------------
We want to accept your pull requests. Please follow these steps:
Step 1: File an issue
~~~~~~~~~~~~~~~~~~~~~
Before writing any code, please file an issue stating the problem you
want to solve or the feature you want to implement. This allows us to
give you feedback before you spend any time writing code. There may be a
known limitation that can't be addressed, or a bug that has already been
fixed in a different way. The issue allows us to communicate and figure
out if it's worth your time to write a bunch of code for the project.
Step 2: Fork this repository in GitHub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This will create your own copy of our repository.
Step 3: Add the upstream source
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The upstream source is the project under the Box organization on GitHub.
To add an upstream source for this project, type:
.. code-block:: console
git remote add upstream git@github.com:box/flaky.git
This will come in useful later.
Step 4: Create a feature branch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Create a branch with a descriptive name, such as ``add-search``.
Step 5: Push your feature branch to your fork
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
As you develop code, continue to push code to your remote feature
branch. Please make sure to include the issue number you're addressing
in your commit message, such as:
.. code-block:: console
git commit -am "Adding search (fixes #123)"
This helps us out by allowing us to track which issue your commit
relates to.
Keep a separate feature branch for each issue you want to address.
Step 6: Rebase
~~~~~~~~~~~~~~
Before sending a pull request, rebase against upstream, such as:
.. code-block:: console
git fetch upstream
git rebase upstream/master
This will add your changes on top of what's already in upstream,
minimizing merge issues.
Step 7: Run the tests
~~~~~~~~~~~~~~~~~~~~~
Make sure that all tests are passing before submitting a pull request.
Step 8: Send the pull request
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Send the pull request from your feature branch to us. Be sure to include
a description that lets us know what work you did.
Keep in mind that we like to see one issue addressed per pull request,
as this helps keep our git history clean and we can more easily track
down issues.
Finally, please add a note in HISTORY.rst under the Upcoming section
detailing what's new in your change. These will become the release
notes for the next release. In addition, feel free to add yourself to
AUTHORS.rst if you aren't already listed.
|