|
|
@ -16,7 +16,6 @@ import ( |
|
|
|
"code.gitea.io/gitea/modules/convert" |
|
|
|
"code.gitea.io/gitea/modules/convert" |
|
|
|
"code.gitea.io/gitea/modules/git" |
|
|
|
"code.gitea.io/gitea/modules/git" |
|
|
|
"code.gitea.io/gitea/modules/log" |
|
|
|
"code.gitea.io/gitea/modules/log" |
|
|
|
"code.gitea.io/gitea/modules/notification" |
|
|
|
|
|
|
|
api "code.gitea.io/gitea/modules/structs" |
|
|
|
api "code.gitea.io/gitea/modules/structs" |
|
|
|
"code.gitea.io/gitea/modules/timeutil" |
|
|
|
"code.gitea.io/gitea/modules/timeutil" |
|
|
|
"code.gitea.io/gitea/routers/api/v1/utils" |
|
|
|
"code.gitea.io/gitea/routers/api/v1/utils" |
|
|
@ -326,8 +325,6 @@ func CreatePullRequest(ctx *context.APIContext, form api.CreatePullRequestOption |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
notification.NotifyNewPullRequest(pr) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.Trace("Pull request created: %d/%d", repo.ID, prIssue.ID) |
|
|
|
log.Trace("Pull request created: %d/%d", repo.ID, prIssue.ID) |
|
|
|
ctx.JSON(http.StatusCreated, convert.ToAPIPullRequest(pr)) |
|
|
|
ctx.JSON(http.StatusCreated, convert.ToAPIPullRequest(pr)) |
|
|
|
} |
|
|
|
} |
|
|
|