diff options
author | mzroot <minoga_dot@mail.ru> | 2024-06-14 19:56:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 18:56:10 +0200 |
commit | d4e4226c3cbfa62a6adf15f4466747468eb208c7 (patch) | |
tree | d98ea2048ea29a43ef9dcf67a7b57655a6fcd369 /routers/api/v1/swagger/repo.go | |
parent | 4e7b067a7fdfb3e2c8dfdf87475e3938051fd400 (diff) | |
download | gitea-d4e4226c3cbfa62a6adf15f4466747468eb208c7.tar.gz gitea-d4e4226c3cbfa62a6adf15f4466747468eb208c7.zip |
Add tag protection via rest api #17862 (#31295)
Add tag protection manage via rest API.
---------
Co-authored-by: Alexander Kogay <kogay.a@citilink.ru>
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'routers/api/v1/swagger/repo.go')
-rw-r--r-- | routers/api/v1/swagger/repo.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/routers/api/v1/swagger/repo.go b/routers/api/v1/swagger/repo.go index fcd34a63a9..345835f9a5 100644 --- a/routers/api/v1/swagger/repo.go +++ b/routers/api/v1/swagger/repo.go @@ -70,6 +70,20 @@ type swaggerResponseAnnotatedTag struct { Body api.AnnotatedTag `json:"body"` } +// TagProtectionList +// swagger:response TagProtectionList +type swaggerResponseTagProtectionList struct { + // in:body + Body []api.TagProtection `json:"body"` +} + +// TagProtection +// swagger:response TagProtection +type swaggerResponseTagProtection struct { + // in:body + Body api.TagProtection `json:"body"` +} + // Reference // swagger:response Reference type swaggerResponseReference struct { |