Skip to content

Commit

Permalink
Fix double webhook for new PR (#9375)
Browse files Browse the repository at this point in the history
Signed-off-by: jolheiser <john.olheiser@gmail.com>
  • Loading branch information
jolheiser authored and techknowlogick committed Dec 16, 2019
1 parent 1bbb2a6 commit 3366239
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions routers/repo/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 3366239

Please sign in to comment.