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 aec549d commit 8099576Copy full SHA for 8099576
routers/common/qos.go
@@ -104,7 +104,7 @@ func requestPriority(ctx context.Context) Priority {
104
105
// If we're operating in the context of a repo, assign low priority
106
routePattern := rctx.RoutePattern()
107
- if strings.HasPrefix(routePattern, "/{username}/{reponame}") {
+ if strings.HasPrefix(routePattern, "/{username}/{reponame}/") {
108
return LowPriority
109
}
110
routers/common/qos_test.go
@@ -33,6 +33,11 @@ func TestRequestPriority(t *testing.T) {
33
RoutePattern: "/user/login",
34
Expected: DefaultPriority,
35
},
36
+ {
37
+ Name: "Repo Home",
38
+ RoutePattern: "/{username}/{reponame}",
39
+ Expected: DefaultPriority,
40
+ },
41
{
42
Name: "User Repo",
43
RoutePattern: "/{username}/{reponame}/src/branch/main",
0 commit comments