forgejo/routers/api/v1
Zettat123 15a1c2d7ef
Fix panic when getting notes by ref ()
Fix  .

Now the `/repos/{owner}/{repo}/git/notes/{sha}` API supports getting
notes by a ref or sha
(https://try.gitea.io/api/swagger#/repository/repoGetNote). But the
`GetNote` func can only accept commit ID.

a12f575737/modules/git/notes_nogogit.go (L18)

So we need to convert the query parameter to commit ID before calling
`GetNote`.
2023-03-08 20:21:23 +08:00
..
activitypub
admin Use context parameter in services/repository () 2023-02-28 16:17:51 -06:00
misc
notify
org Add loading yaml label template files () 2023-03-02 01:44:23 +02:00
packages
repo Fix panic when getting notes by ref () 2023-03-08 20:21:23 +08:00
settings
swagger
user
utils
api.go
auth.go
auth_windows.go