aboutsummaryrefslogtreecommitdiffstats
path: root/routers/private/internal.go
diff options
context:
space:
mode:
authorJulien Tant <julien@craftyx.fr>2018-10-20 08:59:06 +0200
committerLauris BH <lauris@nix.lv>2018-10-20 09:59:06 +0300
commitdea3d849e1e21ccda6f272591cadcb6d1d338b56 (patch)
tree14302df694d167582f19fa0d0a1ae5a65cfbab98 /routers/private/internal.go
parentcabdf84f1f5e55e8b449bbd3b4d4ba0c69a87c87 (diff)
downloadgitea-dea3d849e1e21ccda6f272591cadcb6d1d338b56.tar.gz
gitea-dea3d849e1e21ccda6f272591cadcb6d1d338b56.zip
Give user a link to create PR after push (#4716)
* Give user a link to create PR after push * Forks now create PR in the base repository + make sure PR creation is allowed * fix code style
Diffstat (limited to 'routers/private/internal.go')
-rw-r--r--routers/private/internal.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/private/internal.go b/routers/private/internal.go
index b69411dd06..96021d8feb 100644
--- a/routers/private/internal.go
+++ b/routers/private/internal.go
@@ -44,5 +44,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Post("/push/update", PushUpdate)
m.Get("/protectedbranch/:pbid/:userid", CanUserPush)
m.Get("/branch/:id/*", GetProtectedBranchBy)
+ m.Get("/repository/:rid", GetRepository)
+ m.Get("/active-pull-request", GetActivePullRequest)
}, CheckInternalToken)
}