Skip to content

:octocat: Create pull requests linked to Linear in a snap

License

Notifications You must be signed in to change notification settings

colinlienard/ghl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ghl

A small CLI to create pull requests linked to Linear in seconds.

Note

Install

Run the following:

curl -o ghl -L https://github.com/colinlienard/ghl/releases/latest/download/ghl && chmod +x ghl && mv ghl ~/.local/bin/

Usage

Configuration

You first need to create a new GitHub token here, and select the repo scope.

Then, run the following and paste your token. You can also set the default pull requests description:

ghl config

Creating a pull request

ghl pr

This will ask you the Linear git branch name of an issue, and the name of the pull request that will be created. Then it will:

  1. Create a new branch.
  2. Create an empty commit.
  3. Push to the remote repository.
  4. Create a pull request.
  5. Assign you the pull request.

Other commands

Command Description
init Create a new conventional commit, create a new branch, and push.
commit, -c Create a new conventional commit.
version, -v Display the current and the latest version.
update, -up Update the binary to the latest version.

License

MIT © Colin Lienard