diff --git a/pr-review/main.go b/pr-review/main.go index ceddeb5..15a87a1 100644 --- a/pr-review/main.go +++ b/pr-review/main.go @@ -24,13 +24,13 @@ func processPullRequestCreated(h *common.RequestHandler) error { } // create PrjGit branch for buidling the pull request - branchName := fmt.Sprintf("PR_%s#%d", req.Pull_Request.Repository.Name, req.Pull_Request.Number) + branchName := fmt.Sprintf("PR_%s#%d", req.Repository.Name, req.Pull_Request.Number) commitMsg := fmt.Sprintf(`auto-created for %s This commit was autocreated by %s referencing -PullRequest: %s#%d`, req.Pull_Request.Repository.Name, GitAuthor, req.Pull_Request.Repository.Name, req.Pull_Request.Number) +PullRequest: %s#%d`, req.Repository.Name, GitAuthor, req.Repository.Name, req.Pull_Request.Number) prjGit := h.CreateRepositoryIfNotExist(*req.Repository.Owner, common.DefaultGitPrj) if h.HasError() {