1
0
Fork 0
forked from forgejo/forgejo

#1612 Ability to send mail when a new pull request is submitted

This commit is contained in:
Unknwon 2015-12-10 11:18:56 -05:00
parent 2e9c4ddedb
commit c6083c335e
20 changed files with 1375 additions and 1107 deletions

View file

@ -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))
}