forgejo/routers/api/v1
Nanguan Lin c69a0bb506
Fix 500 when pushing release to an empty repo (#29554)
As title.
The former code directly used `ctx.Repo.GitRepo`, causing 500.

22b4f0c09f/routers/api/v1/repo/release.go (L241)
(cherry picked from commit 6e2aafd5130cb9436f02209ae90bf79a58cc13ae)
2024-03-06 12:10:47 +08:00
..
activitypub Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
admin remove util.OptionalBool and related functions (#29513) 2024-03-06 12:10:46 +08:00
misc Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
notify Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
org Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
packages remove util.OptionalBool and related functions (#29513) 2024-03-06 12:10:46 +08:00
repo Fix 500 when pushing release to an empty repo (#29554) 2024-03-06 12:10:47 +08:00
settings Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
shared Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
swagger [BUG] Fix header name in swagger response 2024-02-29 14:08:10 +01:00
user Allow options to disable user gpg keys configuration from the interface on app.ini (#29486) 2024-03-06 12:10:45 +08:00
utils Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
api.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00