Command line tool for automatic GitLab PR creation.
Project description
PR Man!
TLDR
> 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:
* lemar_david_99 (Lemar David)
* jFISHER_20 (Jared Fisher)
* choiii (Peyton Choi)
> david_99;fisher_20;peyton
Pushing to the origin...
Creating the PR...
The PR is created:
https://gitlab.com/oilrig/simulation/merge_requests/42
Why?
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.
Just run prman
in your repo directory.
Type approvers like david_99; fisher_20; peyton
(search by substring, multiple items divided by ;
).
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.
- Name:
prman
; Scopes:api
; Create personal access token. prman config set gitlab.token YOUR_TOKEN
(the config is stored in~/.config/prman/config.json
).
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 prman-0.1.7.tar.gz
.
File metadata
- Download URL: prman-0.1.7.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f82eac57fc25d94adcf924b428f0e6066ec2028b72c9a53de6aff128af967cb |
|
MD5 | a2ea64e4f66ccdc776c35b963c4bc17a |
|
BLAKE2b-256 | 69f8847f269a101483dcc671b48e1a67a03a738b23f80d7239eeeb55dd2621ae |
File details
Details for the file prman-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: prman-0.1.7-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eaa880605fd42d6d7a138ee12dd694ff23d674bd8850ecc0bfb8bea4269a2c2 |
|
MD5 | 1442186fa8a54caa15423b91e39437da |
|
BLAKE2b-256 | 2d9eccea961e302f7319ad33560656d089a6f8c91b3a149d3ba07175b5b45b34 |