mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
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
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user