index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
routers
/
repo
/
pull.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Unknwon <u@gogs.io>
2015-12-10 11:18:56 -0500
committer
Unknwon <u@gogs.io>
2015-12-10 11:18:56 -0500
commit
c6083c335e53a860fd4c500a86dcdda49a16515e
(
patch
)
tree
2b7699e3c59a0efeabacd00318df475c4534658a
/
routers/repo/pull.go
parent
2e9c4ddedb9d4e585b095d066362e78bf8bff6aa
(
diff
)
#1612 Ability to send mail when a new pull request is submitted
Diffstat
(limited to 'routers/repo/pull.go')
-rw-r--r--
routers/repo/pull.go
5
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index d8163a40..d0c1cb67 100644
--- a/
routers/repo/pull.go
+++ b/
routers/repo/pull.go
@@ -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))
}