.
This commit is contained in:
@@ -12,7 +12,6 @@ const (
|
||||
|
||||
GitAuthor = "GiteaBot - AutoStaging"
|
||||
PrReview = "pr-review"
|
||||
|
||||
)
|
||||
|
||||
func processPullRequestOpened(h *common.RequestHandler) error {
|
||||
@@ -45,7 +44,15 @@ PullRequest: %s#%d`, req.Repository.Name, GitAuthor, req.Repository.Name, req.Pu
|
||||
h.GitExec(common.DefaultGitPrj, "commit", "-a", "-m", commitMsg)
|
||||
h.GitExec(common.DefaultGitPrj, "push", "-f", "origin", branchName)
|
||||
|
||||
PR := h.CreatePullRequest(prjGit, branchName, prjGit.DefaultBranch)
|
||||
PR := h.CreatePullRequest(prjGit, branchName, prjGit.DefaultBranch,
|
||||
fmt.Sprintf("Forwarded PR: %s", req.Repository.Name),
|
||||
fmt.Sprintf(`This is a forwarded pull request by %s
|
||||
referencing the following pull request:
|
||||
|
||||
PullRequest: %s#%d
|
||||
`, GitAuthor, req.Repository.Name, req.Pull_Request.Number),
|
||||
)
|
||||
|
||||
if h.HasError() {
|
||||
return h.Error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user