From 664648d207efb4b108c2038e985e7e3ed751ac1f Mon Sep 17 00:00:00 2001 From: jolheiser Date: Mon, 16 Dec 2019 13:47:28 -0600 Subject: [PATCH] Fix double webhook for new PR Signed-off-by: jolheiser --- routers/repo/pull.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/routers/repo/pull.go b/routers/repo/pull.go index f8612d2b3bf2..fdce18f7a499 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)) }