File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ func requestPriority(ctx context.Context) Priority {
104
104
105
105
// If we're operating in the context of a repo, assign low priority
106
106
routePattern := rctx .RoutePattern ()
107
- if strings .HasPrefix (routePattern , "/{username}/{reponame}" ) {
107
+ if strings .HasPrefix (routePattern , "/{username}/{reponame}/ " ) {
108
108
return LowPriority
109
109
}
110
110
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ func TestRequestPriority(t *testing.T) {
33
33
RoutePattern : "/user/login" ,
34
34
Expected : DefaultPriority ,
35
35
},
36
+ {
37
+ Name : "Repo Home" ,
38
+ RoutePattern : "/{username}/{reponame}" ,
39
+ Expected : DefaultPriority ,
40
+ },
36
41
{
37
42
Name : "User Repo" ,
38
43
RoutePattern : "/{username}/{reponame}/src/branch/main" ,
You can’t perform that action at this time.
0 commit comments