Skip to content

Commit

Permalink
Fix cherry-pick job for unmerged PRs (#56510)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey authored Nov 22, 2023
1 parent dcbfb0c commit 8caae93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/create-cherry-pick-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
await exec.exec("git", ["config", "user.name", "TypeScript Bot"]);
await exec.exec("git", ["switch", "--detach", `origin/${TARGET_BRANCH}`]);
await exec.exec("git", ["switch", "-c", pickBranch]);
await exec.exec("git", ["cherry-pick", pr.data.merge_commit_sha]);
await exec.exec("git", ["cherry-pick", "-m", "-1", pr.data.merge_commit_sha]);
await exec.exec("git", ["push", "--force", "--set-upstream", "origin", pickBranch]);
const existingPulls = await github.rest.pulls.list({
Expand Down

0 comments on commit 8caae93

Please sign in to comment.