Skip to content

Commit 110ca4c

Browse files
authored
Merge branch 'github:main' into feat/update-pull-request-tool
2 parents 88f56a7 + 6b02799 commit 110ca4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/github/search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func searchRepositories(client *github.Client, t translations.TranslationHelperF
3636
if err != nil {
3737
return mcp.NewToolResultError(err.Error()), nil
3838
}
39-
perPage, err := optionalIntParamWithDefault(request, "per_page", 30)
39+
perPage, err := optionalIntParamWithDefault(request, "perPage", 30)
4040
if err != nil {
4141
return mcp.NewToolResultError(err.Error()), nil
4242
}

pkg/github/search_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ func Test_SearchRepositories(t *testing.T) {
7272
),
7373
),
7474
requestArgs: map[string]interface{}{
75-
"query": "golang test",
76-
"page": float64(2),
77-
"per_page": float64(10),
75+
"query": "golang test",
76+
"page": float64(2),
77+
"perPage": float64(10),
7878
},
7979
expectError: false,
8080
expectedResult: mockSearchResult,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy