]> source.dussan.org Git - gitea.git/commit
Handle invalid target when creating releases using API (#31841)
authorKemal Zebari <60799661+kemzeb@users.noreply.github.com>
Thu, 12 Sep 2024 07:47:31 +0000 (00:47 -0700)
committerGitHub <noreply@github.com>
Thu, 12 Sep 2024 07:47:31 +0000 (07:47 +0000)
commitf05d9c98c4cb95e3a8a71bf3e2f8f4529e09f96f
treeeb37db8caf16b57d176b9360d3f134f73eb7a8a9
parent4ab6fc62d23bcef060cb98c60cfc29aa286a02d1
Handle invalid target when creating releases using API (#31841)

A 500 status code was thrown when passing a non-existent target to the
create release API. This snapshot handles this error and instead throws
a 404 status code.

Discovered while working on #31840.
routers/api/v1/repo/release.go
services/release/release.go
tests/integration/api_releases_test.go