Skip to content

Commit 2aa02b2

Browse files
authored
Update limit assertions and comments
1 parent 34b53db commit 2aa02b2

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,8 @@ The following sets of tools are available (all are on by default):
531531
- `before`: Cursor for backward pagination (use with last) (string, optional)
532532
- `includeClosedPrs`: Include closed/merged pull requests in results (default: false) (boolean, optional)
533533
- `issue_numbers`: Array of issue numbers within the specified repository (number[], required)
534-
- `last`: Number of results from end for backward pagination (max: 100) (number, optional)
535-
- `limit`: Maximum number of closing PRs to return per issue (default: 10, max: 100) (number, optional)
534+
- `last`: Number of results from end for backward pagination (max: 250) (number, optional)
535+
- `limit`: Maximum number of closing PRs to return per issue (default: 100, max: 250) (number, optional)
536536
- `orderByState`: Order results by pull request state (default: false) (boolean, optional)
537537
- `owner`: The owner of the repository (string, required)
538538
- `repo`: The name of the repository (string, required)

e2e/e2e_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ func TestFindClosingPullRequests(t *testing.T) {
16741674
owner: "octocat",
16751675
repo: "Hello-World",
16761676
issueNumbers: []int{1},
1677-
limit: 150,
1677+
limit: 251,
16781678
expectError: true,
16791679
},
16801680
}
@@ -2167,21 +2167,21 @@ func TestFindClosingPullRequestsGraphQLParameters(t *testing.T) {
21672167
repo: "vscode",
21682168
issueNumbers: []int{1},
21692169
args: map[string]any{
2170-
"limit": 150,
2170+
"limit": 251,
21712171
},
21722172
expectError: true,
2173-
description: "Should reject limit greater than 100",
2173+
description: "Should reject limit greater than 250",
21742174
},
21752175
{
21762176
name: "Invalid last range - too high",
21772177
owner: "microsoft",
21782178
repo: "vscode",
21792179
issueNumbers: []int{1},
21802180
args: map[string]any{
2181-
"last": 150,
2181+
"last": 251,
21822182
},
21832183
expectError: true,
2184-
description: "Should reject last greater than 100",
2184+
description: "Should reject last greater than 250",
21852185
},
21862186
}
21872187

pkg/github/issues.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ func FindClosingPullRequests(getGQLClient GetGQLClientFn, t translations.Transla
13861386
),
13871387
),
13881388
mcp.WithNumber("limit",
1389-
mcp.Description("Maximum number of closing PRs to return per issue (default: 10, max: 100)"),
1389+
mcp.Description("Maximum number of closing PRs to return per issue (default: 100, max: 250)"),
13901390
),
13911391
mcp.WithBoolean("includeClosedPrs",
13921392
mcp.Description("Include closed/merged pull requests in results (default: false)"),
@@ -1404,7 +1404,7 @@ func FindClosingPullRequests(getGQLClient GetGQLClientFn, t translations.Transla
14041404
mcp.Description("Cursor for backward pagination (use with last)"),
14051405
),
14061406
mcp.WithNumber("last",
1407-
mcp.Description("Number of results from end for backward pagination (max: 100)"),
1407+
mcp.Description("Number of results from end for backward pagination (max: 250)"),
14081408
),
14091409
),
14101410
func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {

0 commit comments

Comments
 (0)