0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-18 07:04:05 +01:00
gitea/models
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
..
activities
admin
asymkey Improve utils of slices (#22379) 2023-01-11 13:31:16 +08:00
auth Replace deprecated Webauthn library (#22400) 2023-01-11 21:51:00 -05:00
avatars
db
fixtures Fix error when calculate the repository size (#22392) 2023-01-13 18:54:02 +00:00
git Supports wildcard protected branch (#20825) 2023-01-16 16:00:22 +08:00
issues Supports wildcard protected branch (#20825) 2023-01-16 16:00:22 +08:00
migrations
organization
packages
perm
project
pull
repo Fix error when calculate the repository size (#22392) 2023-01-13 18:54:02 +00:00
secret
system
unit
unittest Add support for incoming emails (#22056) 2023-01-14 23:57:10 +08:00
user
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate_test.go
migrate.go
org_team_test.go
org_team.go Supports wildcard protected branch (#20825) 2023-01-16 16:00:22 +08:00
org_test.go
org.go
repo_collaboration_test.go
repo_collaboration.go
repo_test.go
repo_transfer_test.go
repo_transfer.go
repo.go
user.go Supports wildcard protected branch (#20825) 2023-01-16 16:00:22 +08:00