Skip to content

Commit 837af76

Browse files
Merge branch 'main' into teams-tool
2 parents 8ebb834 + 8aa3379 commit 837af76

File tree

8 files changed

+523
-192
lines changed

8 files changed

+523
-192
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -542,15 +542,15 @@ The following sets of tools are available (all are on by default):
542542
- `repo`: Repository name (string, required)
543543

544544
- **list_issues** - List issues
545-
- `direction`: Sort direction (string, optional)
545+
- `after`: Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs. (string, optional)
546+
- `direction`: Order direction. If provided, the 'orderBy' also needs to be provided. (string, optional)
546547
- `labels`: Filter by labels (string[], optional)
548+
- `orderBy`: Order issues by field. If provided, the 'direction' also needs to be provided. (string, optional)
547549
- `owner`: Repository owner (string, required)
548-
- `page`: Page number for pagination (min 1) (number, optional)
549550
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
550551
- `repo`: Repository name (string, required)
551552
- `since`: Filter by date (ISO 8601 timestamp) (string, optional)
552-
- `sort`: Sort order (string, optional)
553-
- `state`: Filter by state (string, optional)
553+
- `state`: Filter by state, by default both open and closed issues are returned when not provided (string, optional)
554554

555555
- **list_sub_issues** - List sub-issues
556556
- `issue_number`: Issue number (number, required)
@@ -575,11 +575,11 @@ The following sets of tools are available (all are on by default):
575575

576576
- **search_issues** - Search issues
577577
- `order`: Sort order (string, optional)
578-
- `owner`: Optional repository owner. If provided with repo, only notifications for this repository are listed. (string, optional)
578+
- `owner`: Optional repository owner. If provided with repo, only issues for this repository are listed. (string, optional)
579579
- `page`: Page number for pagination (min 1) (number, optional)
580580
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
581581
- `query`: Search query using GitHub issues search syntax (string, required)
582-
- `repo`: Optional repository name. If provided with owner, only notifications for this repository are listed. (string, optional)
582+
- `repo`: Optional repository name. If provided with owner, only issues for this repository are listed. (string, optional)
583583
- `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
584584

585585
- **update_issue** - Edit issue
@@ -747,11 +747,11 @@ The following sets of tools are available (all are on by default):
747747

748748
- **search_pull_requests** - Search pull requests
749749
- `order`: Sort order (string, optional)
750-
- `owner`: Optional repository owner. If provided with repo, only notifications for this repository are listed. (string, optional)
750+
- `owner`: Optional repository owner. If provided with repo, only pull requests for this repository are listed. (string, optional)
751751
- `page`: Page number for pagination (min 1) (number, optional)
752752
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
753753
- `query`: Search query using GitHub pull request search syntax (string, required)
754-
- `repo`: Optional repository name. If provided with owner, only notifications for this repository are listed. (string, optional)
754+
- `repo`: Optional repository name. If provided with owner, only pull requests for this repository are listed. (string, optional)
755755
- `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
756756

757757
- **submit_pending_pull_request_review** - Submit the requester's latest pending pull request review

pkg/github/__toolsnaps__/list_issues.snap

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@
33
"title": "List issues",
44
"readOnlyHint": true
55
},
6-
"description": "List issues in a GitHub repository.",
6+
"description": "List issues in a GitHub repository. For pagination, use the 'endCursor' from the previous response's 'pageInfo' in the 'after' parameter.",
77
"inputSchema": {
88
"properties": {
9+
"after": {
10+
"description": "Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs.",
11+
"type": "string"
12+
},
913
"direction": {
10-
"description": "Sort direction",
14+
"description": "Order direction. If provided, the 'orderBy' also needs to be provided.",
1115
"enum": [
12-
"asc",
13-
"desc"
16+
"ASC",
17+
"DESC"
1418
],
1519
"type": "string"
1620
},
@@ -21,15 +25,18 @@
2125
},
2226
"type": "array"
2327
},
28+
"orderBy": {
29+
"description": "Order issues by field. If provided, the 'direction' also needs to be provided.",
30+
"enum": [
31+
"CREATED_AT",
32+
"UPDATED_AT"
33+
],
34+
"type": "string"
35+
},
2436
"owner": {
2537
"description": "Repository owner",
2638
"type": "string"
2739
},
28-
"page": {
29-
"description": "Page number for pagination (min 1)",
30-
"minimum": 1,
31-
"type": "number"
32-
},
3340
"perPage": {
3441
"description": "Results per page for pagination (min 1, max 100)",
3542
"maximum": 100,
@@ -44,21 +51,11 @@
4451
"description": "Filter by date (ISO 8601 timestamp)",
4552
"type": "string"
4653
},
47-
"sort": {
48-
"description": "Sort order",
49-
"enum": [
50-
"created",
51-
"updated",
52-
"comments"
53-
],
54-
"type": "string"
55-
},
5654
"state": {
57-
"description": "Filter by state",
55+
"description": "Filter by state, by default both open and closed issues are returned when not provided",
5856
"enum": [
59-
"open",
60-
"closed",
61-
"all"
57+
"OPEN",
58+
"CLOSED"
6259
],
6360
"type": "string"
6461
}

pkg/github/__toolsnaps__/search_issues.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "string"
1616
},
1717
"owner": {
18-
"description": "Optional repository owner. If provided with repo, only notifications for this repository are listed.",
18+
"description": "Optional repository owner. If provided with repo, only issues for this repository are listed.",
1919
"type": "string"
2020
},
2121
"page": {
@@ -34,7 +34,7 @@
3434
"type": "string"
3535
},
3636
"repo": {
37-
"description": "Optional repository name. If provided with owner, only notifications for this repository are listed.",
37+
"description": "Optional repository name. If provided with owner, only issues for this repository are listed.",
3838
"type": "string"
3939
},
4040
"sort": {

pkg/github/__toolsnaps__/search_pull_requests.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "string"
1616
},
1717
"owner": {
18-
"description": "Optional repository owner. If provided with repo, only notifications for this repository are listed.",
18+
"description": "Optional repository owner. If provided with repo, only pull requests for this repository are listed.",
1919
"type": "string"
2020
},
2121
"page": {
@@ -34,7 +34,7 @@
3434
"type": "string"
3535
},
3636
"repo": {
37-
"description": "Optional repository name. If provided with owner, only notifications for this repository are listed.",
37+
"description": "Optional repository name. If provided with owner, only pull requests for this repository are listed.",
3838
"type": "string"
3939
},
4040
"sort": {

0 commit comments

Comments
 (0)