2016-10-23 16:12:34 -04:00
Contributions Guide
===================
2016-09-21 03:25:36 -04:00
We welcome contributions to the esp-idf project!
2016-10-23 16:12:34 -04:00
How to Contribute
-----------------
2016-09-21 03:25:36 -04:00
2020-03-22 19:27:51 -04:00
Contributions to esp-idf - fixing bugs, adding features, adding documentation - are welcome. We accept contributions via `Github Pull Requests <https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests> `_ .
2016-09-21 03:25:36 -04:00
2016-10-23 16:12:34 -04:00
Before Contributing
-------------------
2016-09-21 03:25:36 -04:00
Before sending us a Pull Request, please consider this list of points:
2021-11-02 11:31:51 -04:00
* Is the contribution entirely your own work, or already licensed under an Apache License 2.0 compatible Open Source License? If not then we unfortunately cannot accept it. Please check the :doc: `Copyright Header Guide <copyright-guide>` for additional information.
2016-09-21 03:25:36 -04:00
2016-11-16 14:11:32 -05:00
* Does any new code conform to the esp-idf :doc: `Style Guide <style-guide>` ?
2020-10-30 07:31:55 -04:00
* Have you installed the :doc: `pre-commit hook <install-pre-commit-hook>` for esp-idf project?
2020-10-21 07:30:49 -04:00
2016-11-16 14:11:32 -05:00
* Does the code documentation follow requirements in :doc: `documenting-code` ?
2016-09-21 03:25:36 -04:00
* Is the code adequately commented for people to understand how it is structured?
2017-01-19 03:16:06 -05:00
* Is there documentation or examples that go with code contributions? There are additional suggestions for writing good examples in :idf: `examples` readme.
2016-09-21 03:25:36 -04:00
* Are comments and documentation written in clear English, with no spelling or grammar errors?
2018-06-07 21:18:14 -04:00
* Example contributions are also welcome. Please check the :doc: `creating-examples` guide for these.
2020-03-22 19:27:51 -04:00
* If the contribution contains multiple commits, are they grouped together into logical changes (one major change per pull request)? Are any commits with names like "fixed typo" `squashed into previous commits <https://eli.thegreenplace.net/2014/02/19/squashing-github-pull-requests-into-a-single-commit/> `_ ?
2016-09-21 03:25:36 -04:00
* If you're unsure about any of these points, please open the Pull Request anyhow and then ask us for feedback.
2016-10-23 16:12:34 -04:00
Pull Request Process
--------------------
2016-09-21 03:25:36 -04:00
After you open the Pull Request, there will probably be some discussion in the comments field of the request itself.
Once the Pull Request is ready to merge, it will first be merged into our internal git system for in-house automated testing.
If this process passes, it will be merged onto the public github repository.
2016-10-23 16:12:34 -04:00
Legal Part
----------
2016-09-21 03:25:36 -04:00
2016-11-05 12:04:35 -04:00
Before a contribution can be accepted, you will need to sign our :doc: `contributor-agreement` . You will be prompted for this automatically as part of the Pull Request process.
2017-03-26 18:01:52 -04:00
Related Documents
-----------------
2016-10-26 15:08:36 -04:00
2017-03-26 18:01:52 -04:00
.. toctree ::
:maxdepth: 1
2016-10-26 15:08:36 -04:00
2017-03-26 18:01:52 -04:00
style-guide
2020-10-30 07:31:55 -04:00
install-pre-commit-hook
2017-03-26 18:01:52 -04:00
documenting-code
2018-06-07 21:18:14 -04:00
creating-examples
2017-03-26 18:01:52 -04:00
../api-reference/template
2018-06-07 21:18:14 -04:00
contributor-agreement
2021-11-02 11:31:51 -04:00
copyright-guide
2022-02-23 02:48:05 -05:00
esp-idf-tests-with-pytest