Skip to content

Commit

Permalink
Merge pull request #221 from zeebe-io/continue-after-failed-cherry-pick
Browse files Browse the repository at this point in the history
A failed backport should not prevent the next backport
  • Loading branch information
korthout authored Jan 27, 2022
2 parents f2c8506 + 00e3cd6 commit bc78cfb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ async function checkout(branch: string, start: string, pwd: string) {
async function cherryPick(diffrefs: string[], pwd: string) {
const { exitCode } = await git("cherry-pick", ["-x", ...diffrefs], pwd);
if (exitCode !== 0) {
await git("cherry-pick", ["--abort"], pwd);
throw new Error(
`'git cherry-pick -x ${diffrefs}' failed with exit code ${exitCode}`
);
Expand Down

0 comments on commit bc78cfb

Please sign in to comment.