forked from forgejo/forgejo
#1612 Ability to send mail when a new pull request is submitted
This commit is contained in:
parent
2e9c4ddedb
commit
c6083c335e
20 changed files with 1375 additions and 1107 deletions
|
@ -634,6 +634,11 @@ func CompareAndPullRequestPost(ctx *middleware.Context, form auth.CreateIssueFor
|
|||
return
|
||||
}
|
||||
|
||||
notifyWatchersAndMentions(ctx, pull)
|
||||
if ctx.Written() {
|
||||
return
|
||||
}
|
||||
|
||||
log.Trace("Pull request created: %d/%d", repo.ID, pull.ID)
|
||||
ctx.Redirect(ctx.Repo.RepoLink + "/pulls/" + com.ToStr(pull.Index))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue