diff options
author | Julien Tant <julien@craftyx.fr> | 2018-10-20 08:59:06 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-10-20 09:59:06 +0300 |
commit | dea3d849e1e21ccda6f272591cadcb6d1d338b56 (patch) | |
tree | 14302df694d167582f19fa0d0a1ae5a65cfbab98 /routers/private/internal.go | |
parent | cabdf84f1f5e55e8b449bbd3b4d4ba0c69a87c87 (diff) | |
download | gitea-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.go | 2 |
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) } |