Move merge actions to notification (#9024)

* Move merge actions to notification

* Add missing mail notification
This commit is contained in:
Lunny Xiao authored and techknowlogick committed 2019-11-21 12:08:42 -05:00
1 parent d5261b9aab
commit d7ac9727bb
6 files changed
+69 -21

No files matched your search

-2
View File
@@ -716,8 +716,6 @@ func MergePullRequest(ctx *context.Context, form auth.MergePullRequestForm) {
return
}
notification.NotifyMergePullRequest(pr, ctx.User, ctx.Repo.GitRepo)
log.Trace("Pull request merged: %d", pr.ID)
ctx.Redirect(ctx.Repo.RepoLink + "/pulls/" + com.ToStr(pr.Index))
}