You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/doc/advanced/config-cheat-sheet.en-us.md
+1
Original file line number
Diff line number
Diff line change
@@ -519,6 +519,7 @@ relation to port exhaustion.
519
519
- `NO_REPLY_ADDRESS`: **noreply.DOMAIN** Value for the domain part of the user's email address in the git log if user has set KeepEmailPrivate to true. DOMAIN resolves to the value in server.DOMAIN.
520
520
The user's email will be replaced with a concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS.
521
521
- `USER_DELETE_WITH_COMMENTS_MAX_TIME`: **0** Minimum amount of time a user must exist before comments are kept when the user is deleted.
522
+
- `VALID_SITE_URL_SCHEMES`: **http, https**: Valid site url schemes for user profiles
Protected tags allow control over who has permission to create or update git tags. Each rule allows you to match either an individual tag name, or use an appropriate pattern to control multiple tags at once.
19
+
20
+
**Table of Contents**
21
+
22
+
{{< toc >}}
23
+
24
+
## Setting up protected tags
25
+
26
+
To protect a tag, you need to follow these steps:
27
+
28
+
1. Go to the repository’s **Settings** > **Tags** page.
29
+
1. Type a pattern to match a name. You can use a single name, a [glob pattern](https://pkg.go.dev/github.com/gobwas/glob#Compile) or a regular expression.
30
+
1. Choose the allowed users and/or teams. If you leave these fields empty noone is allowed to create or modify this tag.
31
+
1. Select **Save** to save the configuration.
32
+
33
+
## Pattern protected tags
34
+
35
+
The pattern uses [glob](https://pkg.go.dev/github.com/gobwas/glob#Compile) or regular expressions to match a tag name. For regular expressions you need to enclose the pattern in slashes.
36
+
37
+
Examples:
38
+
39
+
| Type | Pattern Protected Tag | Possible Matching Tags |
0 commit comments