forgejo/routers/api
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
..
actions Actions Artifacts v4 backend (#28965) 2024-03-06 12:10:45 +08:00
forgejo/v1 [CLEANUP] Reuse ForgejoVersion variable 2024-02-05 14:45:11 +01:00
packages Fix incorrect relative/absolute URL usages (#29531) 2024-03-06 12:10:46 +08:00
v1 Fix 500 when pushing release to an empty repo (#29554) 2024-03-06 12:10:47 +08:00