forked from forgejo/forgejo
Move merge actions to notification (#9024)
* Move merge actions to notification * Add missing mail notification
This commit is contained in:
parent
d5261b9aab
commit
d7ac9727bb
6 changed files with 69 additions and 21 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue