Skip to content

Commit c08d50d

Browse files
committed
Add enums
1 parent f978539 commit c08d50d

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

pkg/github/__toolsnaps__/pull_request_read.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
"properties": {
99
"method": {
1010
"description": "Action to specify what pull request data needs to be retrieved from GitHub. \nPossible options: \n 1. get - Get details of a specific pull request.\n 2. get_diff - Get the diff of a pull request.\n 3. get_status - Get status of a head commit in a pull request. This reflects status of builds and checks.\n 4. get_files - Get the list of files changed in a pull request. Use with pagination parameters to control the number of results returned.\n 5. get_review_comments - Get the review comments on a pull request. Use with pagination parameters to control the number of results returned.\n 6. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method.\n",
11+
"enum": [
12+
"get",
13+
"get_diff",
14+
"get_status",
15+
"get_files",
16+
"get_review_comments",
17+
"get_reviews"
18+
],
1119
"type": "string"
1220
},
1321
"owner": {

pkg/github/__toolsnaps__/pull_request_review_write.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
},
2626
"method": {
2727
"description": "The write operation to perform on pull request review.",
28+
"enum": [
29+
"create",
30+
"submit_pending",
31+
"delete_pending"
32+
],
2833
"type": "string"
2934
},
3035
"owner": {

pkg/github/pullrequests.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Possible options:
3636
5. get_review_comments - Get the review comments on a pull request. Use with pagination parameters to control the number of results returned.
3737
6. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method.
3838
`),
39+
40+
mcp.Enum("get", "get_diff", "get_status", "get_files", "get_review_comments", "get_reviews"),
3941
),
4042
mcp.WithString("owner",
4143
mcp.Required(),
@@ -1057,6 +1059,7 @@ Available methods:
10571059
mcp.WithString("method",
10581060
mcp.Required(),
10591061
mcp.Description("The write operation to perform on pull request review."),
1062+
mcp.Enum("create", "submit_pending", "delete_pending"),
10601063
),
10611064
mcp.WithString("owner",
10621065
mcp.Required(),

0 commit comments

Comments
 (0)