]> source.dussan.org Git - gitea.git/commit
Protected tag is no internal server error (#30962) (#30970)
authorGiteabot <teabot@gitea.io>
Tue, 14 May 2024 07:15:36 +0000 (15:15 +0800)
committerGitHub <noreply@github.com>
Tue, 14 May 2024 07:15:36 +0000 (07:15 +0000)
commit8393ff78fce165f39d62b14f2f38c8e1345cc364
treeede4611788be249ca54acb8bef65a515c20fa9ff
parentc1337e731615ec75faba5f102d684fc4b75b190d
Protected tag is no internal server error (#30962) (#30970)

Backport #30962 by @KN4CK3R

Fixes #30959

Adds an API test for protected tags.
Fix existing tag in combination with fixtures.

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
models/fixtures/protected_tag.yml [new file with mode: 0644]
routers/api/v1/repo/release.go
routers/api/v1/repo/release_tags.go
routers/api/v1/repo/tag.go
templates/swagger/v1_json.tmpl
tests/integration/api_releases_test.go
tests/integration/repo_tag_test.go