-
Notifications
You must be signed in to change notification settings - Fork 185
Open
Labels
Description
Prerequisites:
- Is the functionality available in the GitHub UI? If so, please provide a link to information about the feature.
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/configuring-tag-protection-rules
- Is the functionality available through the GitHub API? If the functionality is available, please provide links to the
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.
tags:
- protection:
pattern: ["v1", "release/*, "latest"]
michaelr-c, ctoestreich and johncosta