2020-07-26 17:15:12 +03:00
# How to contribute?
2021-08-14 21:58:38 +03:00
2023-01-21 10:42:53 +03:00
Here are things you can do to help.
- [Report bugs or issues ](https://github.com/InfiniTimeOrg/InfiniTime/issues/new/choose )
- [Write and improve documentation ](#documentation )
- [Fix bugs, add functionalities and improve the code ](#how-to-create-a-pull-request )
- Participate in the discussions within issues and PRs. Your feedback is appreciated!
2023-02-25 16:10:43 +03:00
- Review pull requests. Follow the instructions [here ](doc/maintainer-guide.md#reviewing-prs )
2023-01-21 10:42:53 +03:00
## Documentation
Documentation might be incomplete,
or not clear enough,
and it is always possible to improve it with better wording, pictures, videos,...
As the documentation is part of the source code,
you can submit changes to the documentation by creating a [pull request ](#how-to-create-a-pull-request )
2022-08-21 14:43:56 +03:00
## How to create a pull request?
2023-01-29 19:08:38 +03:00
The workflow is based on [GitHub flow ](https://docs.github.com/en/get-started/quickstart/github-flow ).
To create a pull request,
you need a [fork ](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/about-forks ) of the repo.
Create a new [branch ](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches ) from develop,
make changes in this branch,
[commit ](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/about-commits ) them,
and create a [pull request ](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request ).
### PR checklist
When making changes to the firmware:
2023-02-25 16:10:43 +03:00
- Consider if your feature aligns with the [InfiniTime vision ](doc/InfiniTimeVision.md )
2023-01-29 19:08:38 +03:00
- Test your changes on a PineTime or InfiniSim
2023-02-25 16:10:43 +03:00
- Make sure the code conforms to the [coding conventions ](doc/coding-convention.md )
2023-01-29 19:08:38 +03:00
2023-02-25 16:10:43 +03:00
You can also check the [maintainer's guide ](doc/maintainer-guide.md )
2023-01-29 19:08:38 +03:00
for what maintainers will look at in PRs.
### Commit conventions
- Every commit must contain a title and description,
that sufficiently explains all the changes in the commit
- Commits that fix mistakes from previous commits must be squashed
- Conflicts must be resolved by rebasing,
instead of merging
2023-01-29 19:19:43 +03:00
### Commit format
The preferred format for commits is the following:
```
module: Short description
A more thorough description of all changes in this commit if necessary.
```
where module can be the name of the file,
with or without extension,
or a single word explaining the scope of the changes.