1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-27 10:07:22 +00:00
bazarr/CONTRIBUTING.md

46 lines
2.1 KiB
Markdown
Raw Normal View History

2021-03-25 14:22:43 +00:00
# How to Contribute
## Tools required
2021-02-23 21:04:57 +00:00
2021-12-31 23:01:34 +00:00
- Python 3.7.x to 3.10.x (3.9.x is highly recommended and 3.11 or greater is proscribed).
- Pycharm or Visual Studio code IDE are recommended but if you're happy with VIM, enjoy it!
2021-02-23 21:04:57 +00:00
- Git.
- UI testing must be done using Chrome latest version.
2021-03-25 14:22:43 +00:00
## Warning
2021-02-24 02:24:54 +00:00
As we're using Git in the development process, you better disable automatic update of Bazarr in UI or you may get your changes overwritten. Alternatively, you can completely disable the update module by running Bazarr with `--no-update` command line argument.
2021-03-25 14:22:43 +00:00
## Branching
### Basic rules
2021-02-23 21:13:01 +00:00
- `master` contains only stable releases (which have been merged to `master`) and is intended for end-users.
2021-12-31 23:01:34 +00:00
- `development` is the target for testing (around 10% of users) and is not intended for end-users looking for stability.
2021-02-23 21:14:13 +00:00
- `feature` is a temporary feature branch based on `development`.
2021-02-23 21:04:57 +00:00
2021-03-25 14:22:43 +00:00
### Conditions
2021-02-23 21:14:13 +00:00
- `master` is not merged back to `development`.
- `development` is not re-based on `master`.
2021-12-31 23:01:34 +00:00
- all `feature` branches are branched from `development` only.
2021-02-23 21:14:13 +00:00
- Bugfixes created specifically for a feature branch are done there (because they are specific, they're not cherry-picked to `development`).
2021-12-31 23:01:34 +00:00
- We will not release a patch (1.0.x) if a newer minor (1.x.0) has already been released. We only go forward.
2021-02-23 21:04:57 +00:00
2021-03-25 14:22:43 +00:00
## Typical contribution workflow
### Community devs
2021-02-23 21:04:57 +00:00
2021-12-31 23:01:34 +00:00
- Fork the repository or pull the latest changes if you already have forked it.
2021-02-23 21:13:01 +00:00
- Checkout `development` branch.
2021-02-23 21:04:57 +00:00
- Make the desired changes.
2021-02-23 21:13:01 +00:00
- Submit a PR to Bazarr `development` branch.
2021-12-31 23:01:34 +00:00
- Once reviewed, your PR will be merged using Squash and Merge with a meaningful commit message matching our standards.
2021-02-23 21:04:57 +00:00
2021-03-25 14:22:43 +00:00
### Official devs team
2021-02-23 21:04:57 +00:00
- All commits must have a meaningful commit message (ex.: Fixed issue with this, Improved process abc, Added input field to UI, etc.).
2021-12-31 23:01:34 +00:00
- Fixes can be made directly to `development` branch but keep in mind that a pre-release with a beta versioning will be created every day a new push is made.
2021-02-23 21:13:01 +00:00
- Features must be developed in dedicated feature branch and merged back to `development` branch using PR.
2021-02-23 21:04:57 +00:00
- Once reviewed, your PR will be merged using Squash and Merge with a meaningful message.