Browse Source

Fix double webhook for new PR (#9375)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
tags/v1.11.0-rc1
John Olheiser techknowlogick 5 years ago
parent
commit
55f9cbd1e0
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      routers/repo/pull.go

+ 0
- 2
routers/repo/pull.go View File

@@ -818,8 +818,6 @@ func CompareAndPullRequestPost(ctx *context.Context, form auth.CreateIssueForm)
return return
} }


notification.NotifyNewPullRequest(pullRequest)

log.Trace("Pull request created: %d/%d", repo.ID, pullIssue.ID) log.Trace("Pull request created: %d/%d", repo.ID, pullIssue.ID)
ctx.Redirect(ctx.Repo.RepoLink + "/pulls/" + com.ToStr(pullIssue.Index)) ctx.Redirect(ctx.Repo.RepoLink + "/pulls/" + com.ToStr(pullIssue.Index))
} }


Loading…
Cancel
Save