Skip to content

Commit

Permalink
Merge pull request #23289 from storybookjs/skip-empty-picks
Browse files Browse the repository at this point in the history
Release tooling: Keep redundant commits when cherry-picking
  • Loading branch information
JReinhold authored Jul 4, 2023
2 parents c1f399b + 4e02ee9 commit 7b1597e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release/pick-patches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const run = async (_: unknown) => {
const prSpinner = ora(`Cherry picking #${pr.number}`).start();

try {
await git.raw(['cherry-pick', '-m', '1', '-x', pr.mergeCommit]);
await git.raw(['cherry-pick', '-m', '1', '--keep-redundant-commits', '-x', pr.mergeCommit]);
prSpinner.succeed(`Picked: ${formatPR(pr)}`);
} catch (pickError) {
prSpinner.fail(`Failed to automatically pick: ${formatPR(pr)}`);
Expand Down

0 comments on commit 7b1597e

Please sign in to comment.