https://github.com/cockroachdb/backport
automatically backport pull requests
https://github.com/cockroachdb/backport
Last synced: 6 months ago
JSON representation
automatically backport pull requests
- Host: GitHub
- URL: https://github.com/cockroachdb/backport
- Owner: cockroachdb
- License: mit
- Created: 2018-03-14T15:58:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-05-22T16:32:13.000Z (7 months ago)
- Last Synced: 2025-06-13T14:02:29.531Z (6 months ago)
- Language: Go
- Homepage:
- Size: 2.19 MB
- Stars: 7
- Watchers: 59
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# backport
backport automatically backports GitHub pull requests to a release branch. It
is currently hardcoded for use with [cockroachdb/cockroach], but it might
eventually learn to work with other repositories.
## Usage
backport expects to be run from within a CockroachDB clone.
```
$ backport --help
usage: backport [-f] [-c ] [-r | -b ] ...
or: backport [--continue|--abort]
backport attempts to automatically backport GitHub pull requests to a
release branch.
By default, backport will cherry-pick all commits in the specified PRs.
If you explicitly list commits on the command line, backport will
cherry-pick only the mentioned commits.
If manual conflict resolution is required, backport will quit so you
can use standard Git commands to resolve the conflict. After you have
resolved the conflict, resume backporting with 'backport --continue'.
To give up instead, run 'backport --abort'.
To determine what Git remote to push to, backport looks at the value of
the cockroach.remote Git config option. You can set this option by
running 'git config cockroach.remote REMOTE-NAME'.
Options:
--continue resume an in-progress backport
--abort cancel an in-progress backport
-c, --commit only cherry-pick the mentioned commits
-r, --release select release to backport to
-b, --branch select the branch to backport to
-f, --force live on the edge
--help display this help
Example invocations:
$ backport 23437
$ backport 23389 23437 -r 1.1 -c 00c6a87 -c a26506b -c '!a32f4ce'
$ backport 23437 -b release-23.1.10-rc # backport to the 'release-23.1.10-rc' branch
$ backport --continue
$ backport --abort
```
[cockroachdb/cockroach]: https://github.com/cockroachdb/cockroach