OCA tool to help with modules migration
Project description
oca-port
Tool helping to port an addon or missing commits of an addon from one branch to another.
Installing
$ pipx install oca-port
$ #OR
$ git clone git@github.com:oca/oca-port.git
$ cd oca-port
$ pipx install .
Using
If the addon does not exist on the target branch, it will assist the user in the migration, following the OCA migration guide.
If the addon already exists on the target branch, it will retrieve missing commits to port. If a Pull Request exists for a missing commit, it will be ported with all its commits if they were not yet (fully) ported.
To check if an addon could be migrated or to get eligible commits to port:
$ export GITHUB_TOKEN=<token>
$ oca-port 14.0 15.0 shopfloor --verbose
To effectively migrate the addon or port its commits, use the --fork
option:
$ oca-port 14.0 15.0 shopfloor --fork camptocamp
Migration of addon
The tool follows the usual OCA migration guide to port commits of an addon, and will invite the user to fullfill the mentionned steps that can't be performed automatically.
Output example:
Port of commits/Pull Requests
The tool will ask the user if he wants to open draft pull requests against the upstream repository.
If there are several Pull Requests to port, it will ask the user if he wants to base the next PR on the previous one, allowing the user to cumulate ported PRs in one branch and creating a draft PR against the upstream repository with all of them.
Output example (with --verbose):
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file oca_port-0.12.tar.gz
.
File metadata
- Download URL: oca_port-0.12.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69dc2a9e17b904ba39b6c8da2dbd171e54c5c5228dbadb1bea19535e30385a2a |
|
MD5 | 9946dc5403100314242b4721cdc7c005 |
|
BLAKE2b-256 | bc45e88a2c4b23c7e3fb17853f5466719804d3c30667570f3cac8b4048b0efa6 |
File details
Details for the file oca_port-0.12-py3-none-any.whl
.
File metadata
- Download URL: oca_port-0.12-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0011173e0c1215b111c061d397186a535eb286e65540aac5bdfe850a600c9d59 |
|
MD5 | 9ffcab99bff4e2da42fb32e435a81e28 |
|
BLAKE2b-256 | c559313afd39d250da44803dfc86e6d1725805bc723c53c5666eecd8ba108161 |