mosquitto/CONTRIBUTING.md

93 lines
3.8 KiB
Markdown
Raw Normal View History

2014-05-08 21:41:59 +00:00
Contributing to Mosquitto
=========================
Thank you for your interest in this project.
Project description:
--------------------
The Mosquitto project has been created to provide a light weight, open-source
implementation, of an MQTT broker to allow new, existing, and emerging
applications for Machine-to-Machine (M2M) and Internet of Things (IoT).
2016-04-26 15:24:13 +00:00
- <http://mosquitto.org/>
2014-11-25 17:14:15 +00:00
- <https://projects.eclipse.org/projects/technology.mosquitto>
2014-05-08 21:41:59 +00:00
Source
------
2016-04-26 15:24:13 +00:00
The Mosquitto code is stored in a git repository.
2014-05-08 21:41:59 +00:00
2016-04-26 15:24:13 +00:00
- http://github.com/eclipse/mosquitto
2014-11-25 23:29:24 +00:00
2016-04-26 15:24:13 +00:00
You can contribute bugfixes and new features by sending pull requests through GitHub.
2014-11-25 23:29:24 +00:00
2014-05-08 21:41:59 +00:00
2016-04-26 15:24:13 +00:00
## Legal
2014-05-08 21:41:59 +00:00
2016-04-26 15:24:13 +00:00
In order for your contribution to be accepted, it must comply with the Eclipse
Foundation IP policy.
2014-05-08 21:41:59 +00:00
2016-04-26 15:24:13 +00:00
Please read the [Eclipse Foundation policy on accepting contributions via Git](http://wiki.eclipse.org/Development_Resources/Contributing_via_Git).
2014-05-08 21:41:59 +00:00
2016-04-26 15:24:13 +00:00
1. Sign the [Eclipse CLA](http://www.eclipse.org/legal/CLA.php)
1. Register for an Eclipse Foundation User ID. You can register [here](https://dev.eclipse.org/site_login/createaccount.php).
2. Log into the [Projects Portal](https://projects.eclipse.org/), and click on the '[Eclipse CLA](https://projects.eclipse.org/user/sign/cla)' link.
2. Go to your [account settings](https://dev.eclipse.org/site_login/myaccount.php#open_tab_accountsettings) and add your GitHub username to your account.
3. Make sure that you _sign-off_ your Git commits in the following format:
``` Signed-off-by: John Smith <johnsmith@nowhere.com> ``` This is usually at the bottom of the commit message. You can automate this by adding the '-s' flag when you make the commits. e.g. ```git commit -s -m "Adding a cool feature"```
4. Ensure that the email address that you make your commits with is the same one you used to sign up to the Eclipse Foundation website with.
2014-05-08 21:41:59 +00:00
2016-04-26 15:24:13 +00:00
## Contributing a change
2014-05-08 21:41:59 +00:00
2016-04-26 15:24:13 +00:00
1. [Fork the repository on GitHub](https://github.com/eclipse/mosquitto/fork)
2. Clone the forked repository onto your computer: ``` git clone
https://github.com/<your username>/mosquitto.git ```
3. If you are adding a new feature, then create a new branch from the latest
```develop``` branch with ```git checkout -b YOUR_BRANCH_NAME
origin/develop```
4. If you are fixing a bug, then create a new branch from the latest
```fixes``` branch with ```git checkout -b YOUR_BRANCH_NAME origin/fixes```
5. Make your changes
6. Ensure that all new and existing tests pass.
7. Commit the changes into the branch: ``` git commit -s ``` Make sure that
your commit message is meaningful and describes your changes correctly.
8. If you have a lot of commits for the change, squash them into a single / few
commits.
9. Push the changes in your branch to your forked repository.
10. Finally, go to
[https://github.com/eclipse/mosquitto](https://github.com/eclipse/mosquitto)
and create a pull request from your "YOUR_BRANCH_NAME" branch to the
```develop``` or ```fixes``` branch as appropriate to request review and
merge of the commits in your pushed branch.
2014-05-08 21:41:59 +00:00
What happens next depends on the content of the patch. If it is 100% authored
2014-10-31 17:24:19 +00:00
by the contributor and is less than 1000 lines (and meets the needs of the
2016-04-26 15:24:13 +00:00
project), then it can be pulled into the main repository. If not, more steps
are required. These are detailed in the
[legal process poster](http://www.eclipse.org/legal/EclipseLegalProcessPoster.pdf).
2014-05-08 21:41:59 +00:00
Contact:
--------
2016-04-26 15:24:13 +00:00
Contact the project developers via the project's development
[mailing list](https://dev.eclipse.org/mailman/listinfo/mosquitto-dev).
2014-05-08 21:41:59 +00:00
Search for bugs:
----------------
2016-04-26 15:24:13 +00:00
This project uses [Github](https://github.com/eclipse/mosquitto/issues)
to track ongoing development and issues.
2014-05-08 21:41:59 +00:00
Create a new bug:
-----------------
2016-04-26 15:24:13 +00:00
Be sure to search for existing bugs before you create another one. Remember
that contributions are always welcome!
2014-05-08 21:41:59 +00:00
2016-04-26 15:24:13 +00:00
- [Create new Paho bug](https://github.com/eclipse/mosquitto/issues)