aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2020-02-26 14:39:39 -0600
committerGitHub <noreply@github.com>2020-02-26 22:39:39 +0200
commit1fbdd9335fdeda50c63ceee593547e3dccae7532 (patch)
tree82158a511275fcfadf3a3f863a5a5fe115266432
parente9061a537cddcff893683a3fcc4f98e3e659324b (diff)
downloadgitea-1fbdd9335fdeda50c63ceee593547e3dccae7532.tar.gz
gitea-1fbdd9335fdeda50c63ceee593547e3dccae7532.zip
Fix double PR notification from API (#10482) (#10486)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
-rw-r--r--routers/api/v1/repo/pull.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/routers/api/v1/repo/pull.go b/routers/api/v1/repo/pull.go
index d0551320fd..ef581a70b7 100644
--- a/routers/api/v1/repo/pull.go
+++ b/routers/api/v1/repo/pull.go
@@ -15,7 +15,6 @@ import (
"code.gitea.io/gitea/modules/context"
"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"
issue_service "code.gitea.io/gitea/services/issue"
@@ -316,8 +315,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, pr.APIFormat())
}