Skip to content

Commit ca9b7dc

Browse files
Update configuring-tag-protection-rules.md (github#28726)
Co-authored-by: cmwilson21 <77312589+cmwilson21@users.noreply.github.com>
1 parent ce6be8e commit ca9b7dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/configuring-tag-protection-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ Additionally, you can create custom repository roles to allow other groups of us
2525
{% data reusables.repositories.sidebar-settings %}
2626
1. In the "Code and automation" section of the sidebar, click **{% octicon "tag" aria-hidden="true"%} Tags**.
2727
1. Click **New rule**.
28-
1. Under "Tag name pattern", type the pattern of the tags you want to protect. In this example, typing "\*" protects all tags.
28+
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.
2929
![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)
3030
1. Click **Add rule**.

0 commit comments

Comments
 (0)