Skip to content

mskelton/pr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pr

Interactively create a pull request.

Installation

You can install pr by running the install script which will download the latest release.

curl -LSfs https://go.mskelton.dev/pr/install | sh

Or you can build from source.

git clone git@github.com:mskelton/pr.git
cd pr
go install .

Prerequisites

To parse and format a Linear or Jira ticket from your branch name, add a PR_TICKET_PREFIXES environment variable to your shell with a list of supported prefixes.

export PR_TICKET_PREFIXES="ABC,SUPPORT"

You can also specify prefixes to strip out of your PR names. This is useful if you include your username as a prefix in your branches.

export PR_STRIP_PREFIXES='username/'

Usage

pr