Skip to content

Commit 1a4f4e0

Browse files
committed
fix: update cursor pagination description for dependabot alerts
1 parent 6db9ff6 commit 1a4f4e0

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ The following sets of tools are available:
717717
- **list_dependabot_alerts** - List dependabot alerts
718718
- **Required OAuth Scopes**: `security_events`
719719
- **Accepted OAuth Scopes**: `repo`, `security_events`
720-
- `after`: Forward pagination cursor from the previous response's pageInfo.nextCursor. (string, optional)
720+
- `after`: Omit for the first page. For subsequent pages, use pageInfo.nextCursor from the previous response. (string, optional)
721721
- `owner`: The owner of the repository. (string, required)
722722
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
723723
- `repo`: The name of the repository. (string, required)

pkg/github/__toolsnaps__/list_dependabot_alerts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"inputSchema": {
88
"properties": {
99
"after": {
10-
"description": "Forward pagination cursor from the previous response's pageInfo.nextCursor.",
10+
"description": "Omit for the first page. For subsequent pages, use pageInfo.nextCursor from the previous response.",
1111
"type": "string"
1212
},
1313
"owner": {

pkg/github/dependabot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func ListDependabotAlerts(t translations.TranslationHelperFunc) inventory.Server
124124
// The Dependabot alerts REST endpoint uses cursor pagination via the response's
125125
// Link header (surfaced as pageInfo.nextCursor), not GraphQL. Override the shared
126126
// cursor description, which otherwise refers to a GraphQL PageInfo.
127-
schema.Properties["after"].Description = "Forward pagination cursor from the previous response's pageInfo.nextCursor."
127+
schema.Properties["after"].Description = "Omit for the first page. For subsequent pages, use pageInfo.nextCursor from the previous response."
128128

129129
return NewTool(
130130
ToolsetMetadataDependabot,

0 commit comments

Comments
 (0)