Skip to content

Commit

Permalink
wpcom sync: Add missing push
Browse files Browse the repository at this point in the history
`gh pr create` can't non-interactively push a branch and create a PR.
Just use a plain old `git push` before running `gh pr create --head`
which will work non-interactively if the branch is already pushed.
  • Loading branch information
dsas committed Jul 31, 2024
1 parent b60ec59 commit 5dd6a65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions theme-utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,7 @@ async function createGithubPR(commitMessage) {
git checkout -b deploy
git add --all
git commit -m "${commitMessage}"
git push origin deploy
gh pr create --fill --head deploy
`, true);

Expand Down

0 comments on commit 5dd6a65

Please sign in to comment.