| 1 | --- |
| 2 | layout: docs |
| 3 | title: Contributing |
| 4 | prev_section: building |
| 5 | next_section: license |
| 6 | permalink: /docs/contributing/ |
| 7 | --- |
| 8 | |
| 9 | So you've got an awesome idea to throw into OWNER. |
| 10 | Great! |
| 11 | |
| 12 | There are many ways to help improving OWNER: |
| 13 | |
| 14 | 1. If you want to implement some change, you can |
| 15 | [fork the project on GitHub][fork] then send me a pull request. |
| 16 | See the [workflow](#toc_0). |
| 17 | 2. If you have some idea, you can submit it as change request on |
| 18 | [GitHub issues][issues]. |
| 19 | 3. If you've found some defect, you can submit the bug on |
| 20 | [GitHub issues][issues]. |
| 21 | 4. If you want to help the development, you can pick a |
| 22 | [bug or an enhancement][issues] then contribute your patches following |
| 23 | the [workflow](#toc_0). |
| 24 | 5. Also you can contribute on improving the documentation. |
| 25 | See [Updating Documentation](#toc_1). |
| 26 | |
| 27 | [fork]: https://help.github.com/articles/fork-a-repo |
| 28 | [issues]: https://github.com/lviggiano/owner/issues |
| 29 | [collaborating]: https://help.github.com/categories/63/articles |
| 30 | |
| 31 | |
| 32 | And Please keep the following in mind: |
| 33 | |
| 34 | * If you're creating a small fix or patch to an existing feature, just a simple |
| 35 | test will do. Please stay in the confines of the current test suite. |
| 36 | * Also, some help on documentation would be appreciated. Documentation sources |
| 37 | can be found on the site folder of the master branch. |
| 38 | Great docs make a great project! |
| 39 | * Please follow the project code style. |
| 40 | |
| 41 | <div class="note warning"> |
| 42 | <h5>Contributions will not be accepted without tests.</h5> |
| 43 | </div> |
| 44 | |
| 45 | |
| 46 | Workflow |
| 47 | -------- |
| 48 | |
| 49 | Here's the most direct way to get your work merged into the project: |
| 50 | |
| 51 | * Fork the project. |
| 52 | * Clone down your fork: |
| 53 | |
| 54 | {% highlight bash %} |
| 55 | git clone git://github.com/<your-username>/owner.git |
| 56 | {% endhighlight %} |
| 57 | |
| 58 | * Create a topic branch to contain your change: |
| 59 | |
| 60 | {% highlight bash %} |
| 61 | git checkout -b my_awesome_feature |
| 62 | {% endhighlight %} |
| 63 | |
| 64 | |
| 65 | * Hack away, add tests. Not necessarily in that order. |
| 66 | * Make sure everything still passes by running `mvn test`. |
| 67 | * If necessary, rebase your commits into logical chunks, without errors. |
| 68 | * Push the branch up: |
| 69 | |
| 70 | {% highlight bash %} |
| 71 | git push origin my_awesome_feature |
| 72 | {% endhighlight %} |
| 73 | |
| 74 | * Create a pull request against lviggiano/owner and describe what your change |
| 75 | does and the why you think it should be merged. |
| 76 | |
| 77 | Updating Documentation |
| 78 | ---------------------- |
| 79 | |
| 80 | We want the OWNER documentation to be the best it can be. We've |
| 81 | open-sourced our docs and we welcome any pull requests if you find it |
| 82 | lacking. |
| 83 | |
| 84 | You can find the documentation for owner.aeonbits.org in the |
| 85 | [site](https://github.com/lviggiano/owner/tree/master/site) folder of the |
| 86 | master branch. |
| 87 | |
| 88 | All documentation pull requests should be directed at `master`. Pull |
| 89 | requests directed at another branch will not be accepted. |
| 90 | |
| 91 | The [OWNER wiki](https://github.com/lviggiano/owner/wiki) on GitHub |
| 92 | can be freely updated without a pull request as all GitHub users have |
| 93 | read and write access. |