1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-09-13 00:38:12 -04:00
gitea/templates/repo
Lunny Xiao 2782c14396
Supports wildcard protected branch (#20825)
This PR introduce glob match for protected branch name. The separator is
`/` and you can use `*` matching non-separator chars and use `**` across
separator.

It also supports input an exist or non-exist branch name as matching
condition and branch name condition has high priority than glob rule.

Should fix #2529 and #15705

screenshots

<img width="1160" alt="image"
src="https://user-images.githubusercontent.com/81045/205651179-ebb5492a-4ade-4bb4-a13c-965e8c927063.png">

Co-authored-by: zeripath <art27@cantab.net>
2023-01-16 16:00:22 +08:00
..
branch
cite
diff Restore function to "Show more" buttons (#22399) 2023-01-13 13:50:32 +08:00
editor Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
find
graph Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
issue Supports wildcard protected branch (#20825) 2023-01-16 16:00:22 +08:00
migrate
projects Optimize html templates (#22080) 2022-12-09 21:34:51 +08:00
pulls Add option to prohibit fork if user reached maximum limit of repositories (#21848) 2022-12-27 15:21:14 -06:00
release Add Feed for Releases and Tags (#21696) 2022-12-21 15:06:26 -06:00
settings Supports wildcard protected branch (#20825) 2023-01-16 16:00:22 +08:00
wiki
activity.tmpl
blame.tmpl
branch_dropdown.tmpl
clone_buttons.tmpl
clone_script.tmpl
commit_page.tmpl
commit_status.tmpl
commit_statuses.tmpl
commits_list_small.tmpl
commits_list.tmpl
commits_table.tmpl
commits.tmpl
create.tmpl
empty.tmpl
file_info.tmpl
forks.tmpl
graph.tmpl
header.tmpl Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
home.tmpl
icon.tmpl
packages.tmpl
search.tmpl
shabox_badge.tmpl
sub_menu.tmpl
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl Ensure that plain files are rendered correctly even when containing ambiguous characters (#22017) 2022-12-17 22:22:25 +02:00
view_list.tmpl
watchers.tmpl