https://github.com/norwd/gh-combine
Combine multiple Pull Requests into just one
https://github.com/norwd/gh-combine
Last synced: 3 months ago
JSON representation
Combine multiple Pull Requests into just one
- Host: GitHub
- URL: https://github.com/norwd/gh-combine
- Owner: norwd
- License: unlicense
- Created: 2023-03-20T00:56:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-25T04:19:22.000Z (11 months ago)
- Last Synced: 2024-07-25T05:30:24.305Z (11 months ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh-combine
GitHub CLI extenion to combine multiple Pull Requests together into one PR and close all the individual PRs.
This is particularly useful for cleaning up @dependabot PRs.
```sh
gh combine --title "Update all dependencies" $(gh pr list --author app/dependabot --json number --jq '.[].number')
```
## Installation
```sh
gh extension install norwd/gh-combine```
### Building locally
```sh
gh repo clone norwd/gh-combine
cd gh-combine
# optionally make edits or changes
gh extension install .
```## Usage
*USAGE*
gh combine [-h|--help]
gh combine [--base BRANCH] [-b|--branch BRANCH] [-t|--title TITLE] PR ...*FLAGS*
-h, --help: Show help for command"
--base BRANCH: Use specified base BRANCH"
-b, --branch BRANCH: Use specified BRANCH name"
-t, --title TITLE: Use specified Pull Request TITLE"*ARGUMENTS*
Trailing arguments are parsed as the pull requests to combine.
*EXAMPLES*
$ gh combine 1 2 3
$ gh combine -b combine-1-2-and-3 -t "Combine PRs #1 #2 and #3" 1 2 3
$ gh combine --base dependencies --branch all-new-dependencies --title "Update all dependencies" $(gh pr list --author app/dependabot --json number --jq '.[].number')