Adding the ability to add protected tags via the .github/settings.yml file. Similar to how branches and branch protection is added, adding the ability to specify a list of patterns to add as protected tags.
e.g.
tags:
- protection:
pattern: ["v1", "release/*, "latest"]
Prerequisites:
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/configuring-tag-protection-rules
API documentation (https://developer.github.com/v3/) as well as the Octokit documentation (https://octokit.github.io/).
https://docs.github.com/en/free-pro-team@latest/rest/repos/tags?apiVersion=2022-11-28#create-a-tag-protection-state-for-a-repository
New Feature
Adding the ability to add protected tags via the .github/settings.yml file. Similar to how branches and branch protection is added, adding the ability to specify a list of patterns to add as protected tags.
e.g.