.
This commit is contained in:
parent
295411dcf5
commit
e757ad7194
@ -24,13 +24,13 @@ func processPullRequestCreated(h *common.RequestHandler) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create PrjGit branch for buidling the pull request
|
// 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
|
commitMsg := fmt.Sprintf(`auto-created for %s
|
||||||
|
|
||||||
This commit was autocreated by %s
|
This commit was autocreated by %s
|
||||||
referencing
|
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)
|
prjGit := h.CreateRepositoryIfNotExist(*req.Repository.Owner, common.DefaultGitPrj)
|
||||||
if h.HasError() {
|
if h.HasError() {
|
||||||
|
Loading…
Reference in New Issue
Block a user