mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 12:22:11 +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:
parent
cabdf84f1f
commit
dea3d849e1
4 changed files with 197 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue