Skip to content

Commit

Permalink
feat: add readme (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlienard authored Jan 4, 2024
1 parent ecabd69 commit 29621b8
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# `ghl`

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

> [!NOTE]
> This is made to be used at my company and is adapted to our rules.
> It is also only compatible with Macos.
## Install (or update)

Run the following:

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

## Usage

### Configuration

You first need to create a new GitHub token [here](https://github.com/settings/tokens/new), and select the **_repo_** scope.

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

```bash
ghl config
```

### Creating a pull request

```bash
ghl create
```

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.

## License

[MIT](./LICENSE) © Colin Lienard

0 comments on commit 29621b8

Please sign in to comment.