Any contribution helps our team and makes Tasmota better for the entire community!
Everybody is welcome and invited to contribute to Sonoff-Tasmota Project by:
- Testing newly released features and reporting issues.
- Providing Pull Requests (Features, Proof of Concepts, Language files or Fixes)
- Contributing missing documentation for features and devices on our Wiki
This document describes rules that are in effect for this repository, meant for handling issues by contributors in the issue tracker and PRs.
Issue tracker is NOT a general discussion forum!
- Opening an issue means that a problem exists in the code and should be addressed by the project contributors.
- When opening an issue, it is required to fill out the presented template. The requested information is important! If the template is ignored or insufficient info about the issue is provided, the issue may be closed.
- Questions of type "How do I..." or "Can you please help me with..." or "Can Tasmota do..." WILL NOT be handled here. Such questions should be directed at a discussion forum or to the Tasmota Support Chat. All issues of this type will be closed with a simple reference to this contributing policy.
- Issues about topics already handled in the documentation will be closed in a similar manner.
- Issues for unmerged PRs will be closed. If there is an issue with a PR, the explanation should be added to the PR itself.
- Issues with accompanied investigation that shows the root of the problem should be given priority.
- Duplicate issues will be closed.
- Any contributor to the project can participate in the triaging process, if he/she chooses to do so.
- An issue that needs to be closed, either due to not complying with this policy, or for other reasons, should be closed by a contributor.
- Issues that are accepted should be marked with appropriate labels.
- Issues that could impact functionality for many users should be considered severe.
- Issues caused by the SDK or chip should not be marked severe, as there usually isn’t much to be done. Common sense should be applied when deciding. Such issues should be documented in the Wiki, for reference by users.
- Issues with feature requests should be discussed for viability/desirability.
- Feature requests or changes that are meant to address a very specific/limited use case, especially if at the expense of increased code complexity, may be denied, or may be required to be redesigned, generalized, or simplified.
- Feature requests that are not accompanied by a PR:
- could be closed immediately (denied).
- could be closed after some predetermined period of time (left as candidate for somebody to pick up).
- In some cases, feedback may be requested from the issue reporter, either as additional info for clarification, additional testing, or other. If no feedback is provided, the issue may be closed by a contributor or after 30 days by the STALE bot.
A Pull Request (PR) is the process where code modifications are managed in GitHub.
The process is straight-forward.
- Read How to get faster PR reviews by Kubernetes (but skip step 0)
- Fork the Sonoff-Tasmota Repository git repository.
- Write/Change the code in your Fork for a new feature, bug fix, new sensor, optimization, etc.
- Ensure tests work.
- Create a Pull Request against the dev branch of Sonoff-Tasmota.
- All pull requests must be done against the dev branch.
- Only relevant files should be touched (Also beware if your editor has auto-formatting feature enabled).
- Only one feature/fix should be added per PR.
- If adding a new functionality (new hardware, new library support) not related to an existing component move it to it's own modules (.ino file).
- PRs that don't compile (break Travis) or cause coding errors will not be merged. Please fix the issue. Same goes for PRs that are raised against older commit in dev - you might need to rebase and resolve conflicts.
- All pull requests should undergo peer review by at least one contributor other than the creator, excepts for the owner.
- All pull requests should consider updates to the documentation.
- Pull requests that address an outstanding issue, particularly an issue deemed to be severe, should be given priority.
- If a PR is accepted, then it should undergo review and updated based on the feedback provided, then merged.
- Pull requests that don't meet the above will be denied and closed.