ttrss/CONTRIBUTING.md

36 lines
1.4 KiB
Markdown
Raw Normal View History

## Contributing code the right way
TLDR: it works like Github.
2019-12-19 12:41:26 +01:00
2022-05-21 20:21:32 +02:00
1. Register on the [development website](https://dev.tt-rss.org);
2. Fork the repository you're interested in;
3. Do the needful;
2022-09-29 16:23:40 +02:00
4. Verify that your changes pass through PHPStan (see below);
4. File a PR against master branch;
2017-04-23 21:16:50 +02:00
If you have any other questions, see this [forum thread](https://discourse.tt-rss.org/t/how-to-contribute-code-via-pull-requests-on-git-tt-rss-org/1850).
Please don't inline patches in forum posts, attach files instead (``.patch`` or ``.diff`` file
extensions should work).
2022-09-29 16:23:40 +02:00
## PHPStan
Here's an example on how to run the analyzer using Docker:
```sh
docker run --rm -v $(pwd):/app -v /tmp/phpstan-8.1:/tmp/phpstan --workdir /app php:8.1-cli php -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw
```
Any errors break CI pipeline so you'll have to make sure it's clean.
## Contributing translations
2021-01-24 07:30:22 +01:00
Believe it or not, people also spam using Weblate. Therefore, some minor jumping through hoops is involved here:
2019-12-21 08:00:57 +01:00
1. Register on [Weblate](https://weblate.tt-rss.org/) / forums;
2. Post in the [Weblate discussion thread](https://community.tt-rss.org/t/easier-translations-with-weblate/1680) on the forum, ask to be added to a project
you're interested in;
3. You'll be given proper access rights and will be able to edit translations.
That's it. If the language you're interested is not available yet, ask and we'll add it;