First and foremost, thank you! We appreciate that you want to contribute to LibreTime, your time is valuable, and your contributions mean a lot to us.
Before any contribution, read and be prepared to adhere to our code of conduct.
In addition, LibreTime follow the standardized C4 development process, in which you can find explanation about most of the development workflows for LibreTime.
How to contribute
- Reporting bugs
- Suggesting enhancements
- Financially
- Contributing to documentation
- Contributing to code
This section guides you through submitting a bug report for LibreTime. Following these guidelines helps maintainers and the community understand your report, reproduce the behavior, and find related reports.
Before creating bug reports, please check the following list, to be sure that you need to create one:
- Check the LibreTime forum for existing questions and discussion.
- Check that your issue does not already exist in the issue tracker.
Note: If you find a Closed issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one.
When you are creating a bug report, please include as many details as possible. Fill out the required template, the information it asks helps the maintainers resolve the issue faster.
Bugs are tracked on the official issue tracker.
This section guides you through submitting an enhancement suggestion for LibreTime, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion and find related suggestions.
Before creating enhancement suggestions, please check the following list, as you might find out that you don't need to create one:
- Check the LibreTime forum for existing questions and discussion.
- Check that your issue does not already exist in the issue tracker.
When you are creating an enhancement suggestion, please include as many details as possible. Fill in the template, including the steps that you imagine you would take if the feature you're requesting existed.
Are you familiar with coding in PHP or Python? Have you made projects in Liquidsoap and some of the other services we use? Take a look at the list of bugs and feature requests, and then fork our repo and have a go! Just use the Fork button at the top of our GitHub page, clone the forked repo to your desktop, open up a favorite editor and make some changes, and then commit, push, and open a pull request.
Knowledge on how to use Github and Git will suit you well, use the links for a quick 101.
LibreTime uses the black coding style for Python and you must ensure that your code follows it. If not, the CI will fail and your Pull Request will not be merged. Similarly, the Python import statements are sorted with isort. There is configuration provided for pre-commit, which will ensure that code matches the expected style and conventions when you commit changes. It is set up by running:
sudo apt install pre-commit
pre-commit install
You can also run it anytime using:
pre-commit run --all-files
Before submitting code to the project, it's a good idea to test it first. To do this, it's easiest to install LibreTime in a virtual machine on your local system or in a cloud VM. We have instructions for setting up a virtual instance of LibreTime with Vagrant and Multipass.
If you would like to try LibreTime in a Docker image, Odclive has instructions here for setting up a test image and a more persistent install.
LibreTime is designed to work with a PostgreSQL database server running locally. LibreTime uses PropelORM to interact with the ZendPHP components and create the database. The version 2 API uses Django to interact with the same database.
If you are a developer seeking to add new columns to the database here are the steps.
- Modify
legacy/build/schema.xml
with any changes. - Run
dev_tools/propel_generate.sh
- Update the upgrade.sql under
legacy/application/controllers/upgrade_sql/VERSION
for exampleALTER TABLE imported_podcast ADD COLUMN album_override boolean default 'f' NOT NULL;
- Update the models under
api/libretime_api/models/
to reflect the new changes.
More information about how to contribute documentation or financially through our OpenCollective can be found on our website.