浏览代码

wpcom sync: Add missing push

`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.
Dean Sas 1 年之前
父节点
当前提交
5dd6a65edd
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      theme-utils.mjs

+ 1 - 0
theme-utils.mjs

@@ -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);