diff --git a/pr-review/main.go b/pr-review/main.go index 3b03f78..525ca44 100644 --- a/pr-review/main.go +++ b/pr-review/main.go @@ -43,7 +43,7 @@ PullRequest: %s#%d`, req.Repository.Name, GitAuthor, req.Repository.Name, req.Pu h.GitExec(path.Join(common.DefaultGitPrj, req.Repository.Name), "fetch", "--depth", "1", "origin", req.Pull_Request.Head.Sha) h.GitExec(path.Join(common.DefaultGitPrj, req.Repository.Name), "checkout", req.Pull_Request.Head.Sha) h.GitExec(common.DefaultGitPrj, "commit", "-a", "-m", commitMsg) - h.GitExec(common.DefaultGitPrj, "push", branchName) + h.GitExec(common.DefaultGitPrj, "push", "origin", branchName) PR := h.CreatePullRequest(prjGit, branchName, prjGit.DefaultBranch) if h.HasError() {