Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leofeyer/gh-merge
A GitHub CLI extension to to squash and merge pull requests.
https://github.com/leofeyer/gh-merge
gh-extension
Last synced: 24 days ago
JSON representation
A GitHub CLI extension to to squash and merge pull requests.
- Host: GitHub
- URL: https://github.com/leofeyer/gh-merge
- Owner: leofeyer
- Created: 2023-01-19T15:34:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T10:51:30.000Z (9 months ago)
- Last Synced: 2024-12-13T05:26:39.619Z (26 days ago)
- Topics: gh-extension
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## `gh merge`
`gh merge` is a GitHub CLI extension to squash and merge PRs. The commit
message will be the PR description followed by the list of commits.## Installation
Make sure you have `gh` and `git` installed. Then run:
```bash
$ gh extension install leofeyer/gh-merge
```## Usage
```bash
$ gh merge 1234
```If you are on a branch that you have checked out with `gh pr checkout 1234`,
you can omit the PR number:```bash
$ gh merge
```Use the `--auto` flag to enable auto-merging:
```bash
$ gh merge 1234 --auto
```Use the `--admin` flag to merge the PR with admin privileges:
```bash
$ gh merge 1234 --admin
```