1
0
mirror of synced 2026-01-10 00:03:04 -05:00

Update configuring-tag-protection-rules.md (#28726)

Co-authored-by: cmwilson21 <77312589+cmwilson21@users.noreply.github.com>
This commit is contained in:
Abhishek Deokar
2023-10-03 03:52:46 +05:30
committed by GitHub
parent ce6be8e078
commit ca9b7dc740

View File

@@ -25,6 +25,6 @@ Additionally, you can create custom repository roles to allow other groups of us
{% data reusables.repositories.sidebar-settings %}
1. In the "Code and automation" section of the sidebar, click **{% octicon "tag" aria-hidden="true"%} Tags**.
1. Click **New rule**.
1. Under "Tag name pattern", type the pattern of the tags you want to protect. In this example, typing "\*" protects all tags.
1. Under "Tag name pattern", type the pattern of the tags you want to protect. Tag protection rules use `fnmatch` syntax. For information about syntax options, see the [fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch). In this example, typing "\*" protects all tags.
![Screenshot of the "Protected tags / New rule" page. The example pattern `*` is shown with the "Add rule" button. ](/assets/images/help/repository/tag-protection-rule.png)
1. Click **Add rule**.