You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1260,8 +1260,8 @@ The following sets of tools are available:
1260
1260
-**Required OAuth Scopes**: `repo`
1261
1261
-`affiliation`: Filter by affiliation. Can be one of: 'outside' (outside collaborators), 'direct' (all with permissions regardless of org membership), 'all' (all collaborators). Default: 'all' (string, optional)
1262
1262
-`owner`: Repository owner (string, required)
1263
-
-`page`: Page number for pagination (min 1) (number, optional)
1264
-
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1263
+
-`page`: Page number for pagination (default 1, min 1) (number, optional)
1264
+
-`perPage`: Results per page for pagination (default 30, min 1, max 100) (number, optional)
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/list_repository_collaborators.snap
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
"readOnlyHint": true,
4
4
"title": "List repository collaborators"
5
5
},
6
-
"description": "List collaborators of a GitHub repository.",
6
+
"description": "List collaborators of a GitHub repository. Results are paginated; the response includes `nextPage`, `prevPage`, `firstPage`, and `lastPage` fields. To get the next page, use the `nextPage` value as the `page` parameter.",
7
7
"inputSchema": {
8
8
"properties": {
9
9
"affiliation": {
@@ -20,12 +20,12 @@
20
20
"type": "string"
21
21
},
22
22
"page": {
23
-
"description": "Page number for pagination (min 1)",
23
+
"description": "Page number for pagination (default 1, min 1)",
24
24
"minimum": 1,
25
25
"type": "number"
26
26
},
27
27
"perPage": {
28
-
"description": "Results per page for pagination (min 1, max 100)",
28
+
"description": "Results per page for pagination (default 30, min 1, max 100)",
Description: t("TOOL_LIST_REPOSITORY_COLLABORATORS_DESCRIPTION", "List collaborators of a GitHub repository."),
2212
+
Description: t("TOOL_LIST_REPOSITORY_COLLABORATORS_DESCRIPTION", "List collaborators of a GitHub repository. Results are paginated; the response includes `nextPage`, `prevPage`, `firstPage`, and `lastPage` fields. To get the next page, use the `nextPage` value as the `page` parameter."),
Description: "Filter by affiliation. Can be one of: 'outside' (outside collaborators), 'direct' (all with permissions regardless of org membership), 'all' (all collaborators). Default: 'all'",
2231
-
Enum: []any{"outside", "direct", "all"},
2217
+
InputSchema: func() *jsonschema.Schema {
2218
+
schema:=WithPagination(&jsonschema.Schema{
2219
+
Type: "object",
2220
+
Properties: map[string]*jsonschema.Schema{
2221
+
"owner": {
2222
+
Type: "string",
2223
+
Description: "Repository owner",
2224
+
},
2225
+
"repo": {
2226
+
Type: "string",
2227
+
Description: "Repository name",
2228
+
},
2229
+
"affiliation": {
2230
+
Type: "string",
2231
+
Description: "Filter by affiliation. Can be one of: 'outside' (outside collaborators), 'direct' (all with permissions regardless of org membership), 'all' (all collaborators). Default: 'all'",
2232
+
Enum: []any{"outside", "direct", "all"},
2233
+
},
2232
2234
},
2233
-
},
2234
-
Required: []string{"owner", "repo"},
2235
-
}),
2235
+
Required: []string{"owner", "repo"},
2236
+
})
2237
+
schema.Properties["page"].Description="Page number for pagination (default 1, min 1)"
2238
+
schema.Properties["perPage"].Description="Results per page for pagination (default 30, min 1, max 100)"
0 commit comments