|
| 1 | +# Contribute to IRI |
| 2 | + |
| 3 | +This document describes how to contribute to IRI. |
| 4 | + |
| 5 | +We encourage everyone with knowledge of IOTA technology to contribute. |
| 6 | + |
| 7 | +Thanks! :heart: |
| 8 | + |
| 9 | +<details> |
| 10 | +<summary>Do you have a question :question:</summary> |
| 11 | +<br> |
| 12 | + |
| 13 | +If you have a general or technical question, you can use one of the following resources instead of submitting an issue: |
| 14 | + |
| 15 | +- [**Developer documentation:**](https://docs.iota.org/) For official information about developing with IOTA technology |
| 16 | +- [**Discord:**](https://discord.iota.org/) For real-time chats with the developers and community members |
| 17 | +- [**IOTA cafe:**](https://iota.cafe/) For technical discussions with the Research and Development Department at the IOTA Foundation |
| 18 | +- [**StackExchange:**](https://iota.stackexchange.com/) For technical and troubleshooting questions |
| 19 | +</details> |
| 20 | + |
| 21 | +<br> |
| 22 | + |
| 23 | +<details> |
| 24 | +<summary>Ways to contribute :mag:</summary> |
| 25 | +<br> |
| 26 | + |
| 27 | +To contribute to IRI on GitHub, you can: |
| 28 | + |
| 29 | +- Report a bug |
| 30 | +- Suggest a new feature |
| 31 | +- Build a new feature |
| 32 | +- Contribute to the documentation |
| 33 | +</details> |
| 34 | + |
| 35 | +<br> |
| 36 | + |
| 37 | +<details> |
| 38 | +<summary>Report a bug :bug:</summary> |
| 39 | +<br> |
| 40 | + |
| 41 | +This section guides you through reporting a bug. Following these guidelines helps maintainers and the community understand the bug, reproduce the behavior, and find related bugs. |
| 42 | + |
| 43 | +### Before reporting a bug |
| 44 | + |
| 45 | +Please check the following list: |
| 46 | + |
| 47 | +- **Do not open a GitHub issue for [security vulnerabilities ](SECURITY.MD)**, instead, please contact us at [[email protected]](mailto:[email protected]). |
| 48 | + |
| 49 | +- **Ensure the bug was not already reported** by searching on GitHub under [**Issues**](https://github.com/iotaledger/iri/issues). If the bug has already been reported **and the issue is still open**, add a comment to the existing issue instead of opening a new one. You can also find related issues by their [label](https://github.com/iotaledger/iri/labels?page=1&sort=name-asc). For example, if your issue is database related, filter issues based on the `C-DB` label to look for related ones. `C` stands for component. |
| 50 | + |
| 51 | +**Note:** If you find a **Closed** issue that seems similar to what you're experiencing, open a new issue and include a link to the original issue in the body of your new one. |
| 52 | + |
| 53 | +### Submitting A Bug Report |
| 54 | + |
| 55 | +To report a bug, [open a new issue](https://github.com/iotaledger/iri/issues/new), and be sure to include as many details as possible, using the template. |
| 56 | + |
| 57 | +**Note:** Minor changes such as fixing a typo can but do not need an open issue. |
| 58 | + |
| 59 | +If you also want to fix the bug, submit a [pull request](#pull-requests) and reference the issue. |
| 60 | +</details> |
| 61 | + |
| 62 | +<br> |
| 63 | + |
| 64 | +<details> |
| 65 | +<summary>Suggest a new feature :bulb:</summary> |
| 66 | +<br> |
| 67 | + |
| 68 | +This section guides you through suggesting a new feature. Following these guidelines helps maintainers and the community collaborate to find the best possible way forward with your suggestion. |
| 69 | + |
| 70 | +### Before suggesting a new feature |
| 71 | + |
| 72 | +**Ensure the feature has not already been suggested** by searching on GitHub under [**Issues**](https://github.com/iotaledger/iri/issues). |
| 73 | + |
| 74 | +### Suggesting a new feature |
| 75 | + |
| 76 | +To suggest a new feature, talk to the IOTA community and IOTA Foundation members in the #iri-discussion channel on [Discord](https://discord.iota.org/). |
| 77 | + |
| 78 | +If the IRI team approves your feature, the team will create an issue for it. |
| 79 | +</details> |
| 80 | + |
| 81 | +<br> |
| 82 | + |
| 83 | +<details> |
| 84 | +<summary>Build a new feature :hammer:</summary> |
| 85 | +<br> |
| 86 | + |
| 87 | +This section guides you through building a new feature. Following these guidelines helps give your feature the best chance of being approved and merged. |
| 88 | + |
| 89 | +### Before building a new feature |
| 90 | + |
| 91 | +Make sure to discuss the feature in the #iri-discussion channel on [Discord](https://discord.iota.org/). |
| 92 | + |
| 93 | +Otherwise, your feature may not be approved at all. |
| 94 | + |
| 95 | +### Building a new feature |
| 96 | + |
| 97 | +To build a new feature, check out a new branch based on the `dev` branch, and be sure to consider the following: |
| 98 | + |
| 99 | +- If the feature has a public facing API, make sure to document it, using Javadoc code comments |
| 100 | + |
| 101 | +- Where necessary, please write regression tests for your feature. Refer to our current [regression tests](https://github.com/iotaledger/iri/tree/dev/python-regression) for guidance. |
| 102 | +</details> |
| 103 | + |
| 104 | +<br> |
| 105 | + |
| 106 | +<details> |
| 107 | +<summary>Contribute to the documentation :black_nib:</summary> |
| 108 | +<br> |
| 109 | + |
| 110 | +The IRI documentation is hosted on https://docs.iota.org, which is built from content in the [documentation](https://github.com/iotaledger/documentation) repository. |
| 111 | + |
| 112 | +Please see the [guidelines](https://github.com/iotaledger/documentation/CONTRIBUTING.md) on the documentation repository for information on how to contribute to the documentation. |
| 113 | +</details> |
| 114 | + |
| 115 | +<br> |
| 116 | + |
| 117 | +<details> |
| 118 | +<summary>Pull requests :mega:</summary> |
| 119 | +<br> |
| 120 | + |
| 121 | +This section guides you through submitting a pull request (PR). Following these guidelines helps give your PR the best chance of being approved and merged. |
| 122 | + |
| 123 | +### Before submitting a pull request |
| 124 | + |
| 125 | +When creating a pull request, please follow these steps to have your contribution considered by the maintainers: |
| 126 | + |
| 127 | +- A pull request should have only one concern (for example one feature or one bug). If a PR address more than one concern, it should be split into two or more PRs. |
| 128 | + |
| 129 | +- A pull request can be merged only if it references an open issue |
| 130 | + |
| 131 | + **Note:** Minor changes such as fixing a typo can but do not need an open issue. |
| 132 | + |
| 133 | +- All code should be well tested and follow the [code styleguide](.github/STYLEGUIDE.md) |
| 134 | + |
| 135 | +### Submitting a pull request |
| 136 | + |
| 137 | +The following is a typical workflow for submitting a new pull request: |
| 138 | + |
| 139 | +1. Fork this repository |
| 140 | +2. Create a new branch based on your fork |
| 141 | +3. Commit changes and push them to your fork |
| 142 | +4. Create a pull request against the `dev` branch |
| 143 | + |
| 144 | +If all [status checks](https://help.github.com/articles/about-status-checks/) pass, and the maintainer approves the PR, it will be merged. |
| 145 | + |
| 146 | +**Note:** Reviewers may ask you to complete additional work, tests, or other changes before your pull request can be approved and merged. |
| 147 | +</details> |
| 148 | + |
| 149 | +<br> |
| 150 | + |
| 151 | +<details> |
| 152 | +<summary>Code of Conduct :clipboard:</summary> |
| 153 | +<br> |
| 154 | + |
| 155 | +This project and everyone participating in it is governed by the [IOTA Code of Conduct](CODE_OF_CONDUCT.md). |
0 commit comments