You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
2.0 KiB
46 lines
2.0 KiB
5 years ago
|
# How to contribute
|
||
|
|
||
|
Our software is open source so you can solve your own problems without needing help from others. And if you solve a problem and are so kind, you can upstream it for the rest of the world to use.
|
||
|
|
||
4 years ago
|
Most open source development activity is coordinated through our [GitHub Discussions](https://github.com/commaai/openpilot/discussions) and [Discord](https://discord.comma.ai). A lot of documentation is available on our [blog](https://blog.comma.ai/).
|
||
5 years ago
|
|
||
|
## Getting Started
|
||
|
|
||
|
* Join our [Discord](https://discord.comma.ai)
|
||
|
* Make sure you have a [GitHub account](https://github.com/signup/free)
|
||
|
* Fork [our repositories](https://github.com/commaai) on GitHub
|
||
|
|
||
|
## Testing
|
||
|
|
||
|
### Automated Testing
|
||
|
|
||
4 years ago
|
All PRs and commits are automatically checked by GitHub Actions. Check out `.github/workflows/` for what GitHub Actions runs. Any new tests should be added to GitHub Actions.
|
||
5 years ago
|
|
||
|
### Code Style and Linting
|
||
|
|
||
4 years ago
|
Code is automatically checked for style by GitHub Actions as part of the automated tests. You can also run these tests yourself by running `pre-commit run --all`.
|
||
5 years ago
|
|
||
|
## Car Ports (openpilot)
|
||
|
|
||
4 years ago
|
We've released a [Model Port guide](https://blog.comma.ai/openpilot-port-guide-for-toyota-models/) for porting to Toyota/Lexus models.
|
||
5 years ago
|
|
||
4 years ago
|
If you port openpilot to a substantially new car brand, see this more generic [Brand Port guide](https://blog.comma.ai/how-to-write-a-car-port-for-openpilot/).
|
||
5 years ago
|
|
||
|
## Pull Requests
|
||
|
|
||
5 years ago
|
Pull requests should be against the master branch. Before running master on in-car hardware, you'll need to clone the submodules too. That can be done by recursively cloning the repository:
|
||
|
```
|
||
|
git clone https://github.com/commaai/openpilot.git --recursive
|
||
|
```
|
||
|
Or alternatively, when on the master branch:
|
||
5 years ago
|
```
|
||
4 years ago
|
git submodule update --init
|
||
5 years ago
|
```
|
||
4 years ago
|
The reasons for having submodules on a dedicated repository and our new development philosophy can be found in our [post about externalization](https://blog.comma.ai/a-2020-theme-externalization/).
|
||
5 years ago
|
Modules that are in seperate repositories include:
|
||
|
* cereal
|
||
|
* laika
|
||
|
* opendbc
|
||
5 years ago
|
* panda
|
||
5 years ago
|
* rednose
|