Interaction with pull requests from command line List and create PRs in Azure or Github repositories
- Install the binaries
go install github.com/cgxarrie-go/prq@latest
- Clone the repository, build the binaries and move them to your PATH
git clone https://github.com/cgxarrie-go/prq.git
cd prq
go build
- Download the binaries the latest release into ypur PATH and rename them to prq
- prq config : display config
- prq config az -pat : set PAT in Azure config
- prq config az -branch : set the default PRs target branch in Azure config
- prq config gh -pat : set PAT in Github config
- prq config gh -branch : set the default PRs target branch in Github config
- prq config remotes -a remote : Add a remote to config
- prq config remotes -r remote : Remove remote from config
List will list all active PRs in the remote of the current folder's local git repository (Azure ot Github)
- prq list : Lists all PR in status Active in the repository in the current directory
-o : select repositories to get PRs from - d : Lists all PR in status Active in all the repositories found in the current directory tree - c : Lists all PR in status Active in all the repositories in config remotes
-f : filter PRs by title, author or status
- prq create : creates a draft PR from current branch to default destination brnach with default title
default destination branch is master in Azure and main in Github deafult title is PR from spurce-branch-name to destination-branch-name
-g : specify target brnach of the PR -t : set the title of the PR -f : specify if PR is draft. Default is true -d : PR decription -m: template file to be added to PR description
- prq create -d branchname : creates a draft PR from current branch to branchname with default title
- prq create -t pr-title : crecreates a draft PR from current branch to default destination branch with title pr-title
- prq create -d branchname -t pr-title : crecreates a draft PR from current branch to branchname with title pr-title
Open will open the PR in the default browser
- prq open pr_id: Open the PR with id pr_id in the default browser
- prq o pr_id: Open the PR with id pr_id in the default browser
code will open the current folder repository in the default browser
- prq code
- prq d