go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
43.3k stars 5.33k forks source link

tag protection via rest api #17862

Open markusschaefer opened 2 years ago

markusschaefer commented 2 years ago

Feature Description

The tag protection function is available since version 1.15.0 (https://github.com/go-gitea/gitea/issues/15545).

It would be helpful to manage tag protection for a lot of repositories when a api like branch protection would be available.

/repos/{owner}/{repo}/branch_protections --> /repos/{owner}/{repo}/tag_protections

Screenshots

No response

mbarinc commented 1 year ago

I follow this request, it would be useful for those who have many repositories to manage.

sgabenov commented 9 months ago

Hey, does anybody looking into it? We have the same request to be able get protected tags over the Rest API, so we can do some automation over deleting unused tags. Could anyone help with introducing API or give any information on plans for it?

linuxoid69 commented 6 months ago

Guys, I need this feature too!