diff options
author | John Olheiser <john.olheiser@gmail.com> | 2020-02-26 12:12:34 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 12:12:34 -0600 |
commit | 78585b1cd7b1788a0a5155587da59a20d00c090b (patch) | |
tree | 6092785fcecb1ff95d30ac926b9bd89286eebc01 /routers/api/v1/repo | |
parent | bcd16cec63207a627c0c3708afb2796353a907e8 (diff) | |
download | gitea-78585b1cd7b1788a0a5155587da59a20d00c090b.tar.gz gitea-78585b1cd7b1788a0a5155587da59a20d00c090b.zip |
Fix double PR notification from API (#10482)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers/api/v1/repo')
-rw-r--r-- | routers/api/v1/repo/pull.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/routers/api/v1/repo/pull.go b/routers/api/v1/repo/pull.go index 41e17f8c23..d6d6918bb6 100644 --- a/routers/api/v1/repo/pull.go +++ b/routers/api/v1/repo/pull.go @@ -16,7 +16,6 @@ import ( "code.gitea.io/gitea/modules/convert" "code.gitea.io/gitea/modules/git" "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/notification" api "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/routers/api/v1/utils" @@ -326,8 +325,6 @@ func CreatePullRequest(ctx *context.APIContext, form api.CreatePullRequestOption return } - notification.NotifyNewPullRequest(pr) - log.Trace("Pull request created: %d/%d", repo.ID, prIssue.ID) ctx.JSON(http.StatusCreated, convert.ToAPIPullRequest(pr)) } |