From f9395eaa08b17b081dd3b0453d0d0b03a1ee4d5b Mon Sep 17 00:00:00 2001 From: Giteabot Date: Fri, 29 Sep 2023 22:38:11 +0800 Subject: [PATCH] Add protected branch name description (#27257) (#27351) Backport #27257 by @lunny Co-authored-by: Lunny Xiao Co-authored-by: delvh --- options/locale/locale_en-US.ini | 1 + templates/repo/settings/protected_branch.tmpl | 1 + 2 files changed, 2 insertions(+) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index c0d3224020..fb39487a65 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2305,6 +2305,7 @@ settings.dismiss_stale_approvals_desc = When new commits that change the content settings.require_signed_commits = Require Signed Commits settings.require_signed_commits_desc = Reject pushes to this branch if they are unsigned or unverifiable. settings.protect_branch_name_pattern = Protected Branch Name Pattern +settings.protect_branch_name_pattern_desc = "Protected branch name patterns. See the documentation for pattern syntax. Examples: main, release/**" settings.protect_patterns = Patterns settings.protect_protected_file_patterns = "Protected file patterns (separated using semicolon ';'):" settings.protect_protected_file_patterns_desc = "Protected files are not allowed to be changed directly even if user has rights to add, edit, or delete files in this branch. Multiple patterns can be separated using semicolon (';'). See github.com/gobwas/glob documentation for pattern syntax. Examples: .drone.yml, /docs/**/*.txt." diff --git a/templates/repo/settings/protected_branch.tmpl b/templates/repo/settings/protected_branch.tmpl index 6a8c8c1e35..a1e45d805c 100644 --- a/templates/repo/settings/protected_branch.tmpl +++ b/templates/repo/settings/protected_branch.tmpl @@ -10,6 +10,7 @@ +

{{ctx.Locale.Tr "repo.settings.protect_branch_name_pattern_desc" | Safe}}