Metadata-Version: 2.1
Name: prman
Version: 0.1.7
Summary: Command line tool for automatic GitLab PR creation.
Home-page: https://github.com/ilyalatt/prman
Author: Ilya Latushko
Author-email: ilyalatt@gmail.com
License: Unlicense
Platform: UNKNOWN
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: requests (==2.23.0)
Requires-Dist: jstyleson (==0.0.2)
Requires-Dist: python-gitlab (==2.1.2)
Requires-Dist: chardet (==3.0.4)
Requires-Dist: pyrecord (==1.0.1)
Requires-Dist: idna (==2.9)
Requires-Dist: toolz (==0.10.0)
Requires-Dist: brigit (==1.3.0)
Requires-Dist: urllib3 (==1.25.8)
Requires-Dist: log-colorizer (==1.8.6)
Requires-Dist: colorama (==0.4.3)
Requires-Dist: docopt (==0.6.2)
Requires-Dist: certifi (==2019.11.28)

# 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](https://pipxproject.github.io/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](https://gitlab.com/profile/personal_access_tokens).
* Name: `prman`; Scopes: `api`; Create personal access token.
* `prman config set gitlab.token YOUR_TOKEN` (the config is stored in `~/.config/prman/config.json`).


