We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6b9834 commit 74760d5Copy full SHA for 74760d5
models/git/protected_branch_list.go
@@ -48,7 +48,7 @@ func FindRepoProtectedBranchRules(ctx context.Context, repoID int64) (ProtectedB
48
if err != nil {
49
return nil, err
50
}
51
- rules.sort() // to make non-glob rules have higher priority, and for same glob/non-glob rules, first created rules have higher priority
+ rules.sort() // make sure first match is detected in right order
52
return rules, nil
53
54
0 commit comments