aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-12-16 14:27:18 -0600
committertechknowlogick <techknowlogick@gitea.io>2019-12-16 15:27:18 -0500
commit33662399d59a94436e6acb5e5bf41935dbc75328 (patch)
tree3914fd76dda578cdb86e4dcfb18ef5638368bd4e
parent1bbb2a637cf49f14b46bb4d869ef568c4ce6cae7 (diff)
downloadgitea-33662399d59a94436e6acb5e5bf41935dbc75328.tar.gz
gitea-33662399d59a94436e6acb5e5bf41935dbc75328.zip
Fix double webhook for new PR (#9375)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
-rw-r--r--routers/repo/pull.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index f8612d2b3b..fdce18f7a4 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -818,8 +818,6 @@ func CompareAndPullRequestPost(ctx *context.Context, form auth.CreateIssueForm)
return
}
- notification.NotifyNewPullRequest(pullRequest)
-
log.Trace("Pull request created: %d/%d", repo.ID, pullIssue.ID)
ctx.Redirect(ctx.Repo.RepoLink + "/pulls/" + com.ToStr(pullIssue.Index))
}