Command line tool for automatic GitLab PR creation.
> prman -m "This PR is created with prman!" The repository name: simulation The project id: oilrig/simulation The current branch: f/OIL-123-add-tests The PR name: OIL 123: add tests Fetching the project... Fetching PR's... Fetching approvers... Select approvers: 1. jfisher (Jared Fisher) 2. choiii (Peyton Choi) 3. ldavid (Lemar David) > fisher;choi Pushing to the origin... Creating the PR... The PR is created: https://gitlab.com/oilrig/simulation/merge_requests/42
Creating a PR in GitLab UI takes so much time. You need to click a button, select options like 'Squash', 'Remove source branch when merged'. You need to select minimal approvers count. You need to select approvers. You should set approvers as assignee to give them email about your PR.
It is a pure nightmare.
prman in your repo directory.
Type approvers like
It pushes your branch to the origin automatically.
A Pull Request is done!
How to install it?
- Install pipx.
It is like a pip+venv for CLI apps.
python3 -m pip install --user pipx.
pipx install prman.
- Go to GitLab Access Tokens UI.
api; Create personal access token.
prman config set gitlab.token YOUR_TOKEN(a config is stored in
How to select approvers?
- You can type a substring of an item by a query like
- You can type multiple items separated by
;like in a query
- You can select item by index with a query like
- You can select an index range with a query like
- Parts of a query can intersects like
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size prman-0.1.5-py3-none-any.whl (11.1 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size prman-0.1.5.tar.gz (9.2 kB)||File type Source||Python version None||Upload date||Hashes View hashes|