Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 31 additions & 32 deletions pkg/github/__toolsnaps__/add_comment_to_pending_review.snap
Original file line number Diff line number Diff line change
@@ -1,73 +1,72 @@
{
"annotations": {
"title": "Add review comment to the requester's latest pending pull request review",
"readOnlyHint": false
"title": "Add review comment to the requester's latest pending pull request review"
},
"description": "Add review comment to the requester's latest pending pull request review. A pending review needs to already exist to call this (check with the user if not sure).",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"pullNumber",
"path",
"body",
"subjectType"
],
"properties": {
"body": {
"description": "The text of the review comment",
"type": "string"
"type": "string",
"description": "The text of the review comment"
},
"line": {
"description": "The line of the blob in the pull request diff that the comment applies to. For multi-line comments, the last line of the range",
"type": "number"
"type": "number",
"description": "The line of the blob in the pull request diff that the comment applies to. For multi-line comments, the last line of the range"
},
"owner": {
"description": "Repository owner",
"type": "string"
"type": "string",
"description": "Repository owner"
},
"path": {
"description": "The relative path to the file that necessitates a comment",
"type": "string"
"type": "string",
"description": "The relative path to the file that necessitates a comment"
},
"pullNumber": {
"description": "Pull request number",
"type": "number"
"type": "number",
"description": "Pull request number"
},
"repo": {
"description": "Repository name",
"type": "string"
"type": "string",
"description": "Repository name"
},
"side": {
"type": "string",
"description": "The side of the diff to comment on. LEFT indicates the previous state, RIGHT indicates the new state",
"enum": [
"LEFT",
"RIGHT"
],
"type": "string"
]
},
"startLine": {
"description": "For multi-line comments, the first line of the range that the comment applies to",
"type": "number"
"type": "number",
"description": "For multi-line comments, the first line of the range that the comment applies to"
},
"startSide": {
"type": "string",
"description": "For multi-line comments, the starting side of the diff that the comment applies to. LEFT indicates the previous state, RIGHT indicates the new state",
"enum": [
"LEFT",
"RIGHT"
],
"type": "string"
]
},
"subjectType": {
"type": "string",
"description": "The level at which the comment is targeted",
"enum": [
"FILE",
"LINE"
],
"type": "string"
]
}
},
"required": [
"owner",
"repo",
"pullNumber",
"path",
"body",
"subjectType"
],
"type": "object"
}
},
"name": "add_comment_to_pending_review"
}
53 changes: 26 additions & 27 deletions pkg/github/__toolsnaps__/create_pull_request.snap
Original file line number Diff line number Diff line change
@@ -1,52 +1,51 @@
{
"annotations": {
"title": "Open new pull request",
"readOnlyHint": false
"title": "Open new pull request"
},
"description": "Create a new pull request in a GitHub repository.",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"title",
"head",
"base"
],
"properties": {
"base": {
"description": "Branch to merge into",
"type": "string"
"type": "string",
"description": "Branch to merge into"
},
"body": {
"description": "PR description",
"type": "string"
"type": "string",
"description": "PR description"
},
"draft": {
"description": "Create as draft PR",
"type": "boolean"
"type": "boolean",
"description": "Create as draft PR"
},
"head": {
"description": "Branch containing changes",
"type": "string"
"type": "string",
"description": "Branch containing changes"
},
"maintainer_can_modify": {
"description": "Allow maintainer edits",
"type": "boolean"
"type": "boolean",
"description": "Allow maintainer edits"
},
"owner": {
"description": "Repository owner",
"type": "string"
"type": "string",
"description": "Repository owner"
},
"repo": {
"description": "Repository name",
"type": "string"
"type": "string",
"description": "Repository name"
},
"title": {
"description": "PR title",
"type": "string"
"type": "string",
"description": "PR title"
}
},
"required": [
"owner",
"repo",
"title",
"head",
"base"
],
"type": "object"
}
},
"name": "create_pull_request"
}
52 changes: 26 additions & 26 deletions pkg/github/__toolsnaps__/list_pull_requests.snap
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
{
"annotations": {
"title": "List pull requests",
"readOnlyHint": true
"readOnlyHint": true,
"title": "List pull requests"
},
"description": "List pull requests in a GitHub repository. If the user specifies an author, then DO NOT use this tool and use the search_pull_requests tool instead.",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo"
],
"properties": {
"base": {
"description": "Filter by base branch",
"type": "string"
"type": "string",
"description": "Filter by base branch"
},
"direction": {
"type": "string",
"description": "Sort direction",
"enum": [
"asc",
"desc"
],
"type": "string"
]
},
"head": {
"description": "Filter by head user/org and branch",
"type": "string"
"type": "string",
"description": "Filter by head user/org and branch"
},
"owner": {
"description": "Repository owner",
"type": "string"
"type": "string",
"description": "Repository owner"
},
"page": {
"type": "number",
"description": "Page number for pagination (min 1)",
"minimum": 1,
"type": "number"
"minimum": 1
},
"perPage": {
"type": "number",
"description": "Results per page for pagination (min 1, max 100)",
"maximum": 100,
"minimum": 1,
"type": "number"
"maximum": 100
},
"repo": {
"description": "Repository name",
"type": "string"
"type": "string",
"description": "Repository name"
},
"sort": {
"type": "string",
"description": "Sort by",
"enum": [
"created",
"updated",
"popularity",
"long-running"
],
"type": "string"
]
},
"state": {
"type": "string",
"description": "Filter by state",
"enum": [
"open",
"closed",
"all"
],
"type": "string"
]
}
},
"required": [
"owner",
"repo"
],
"type": "object"
}
},
"name": "list_pull_requests"
}
41 changes: 20 additions & 21 deletions pkg/github/__toolsnaps__/merge_pull_request.snap
Original file line number Diff line number Diff line change
@@ -1,47 +1,46 @@
{
"annotations": {
"title": "Merge pull request",
"readOnlyHint": false
"title": "Merge pull request"
},
"description": "Merge a pull request in a GitHub repository.",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"pullNumber"
],
"properties": {
"commit_message": {
"description": "Extra detail for merge commit",
"type": "string"
"type": "string",
"description": "Extra detail for merge commit"
},
"commit_title": {
"description": "Title for merge commit",
"type": "string"
"type": "string",
"description": "Title for merge commit"
},
"merge_method": {
"type": "string",
"description": "Merge method",
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string"
]
},
"owner": {
"description": "Repository owner",
"type": "string"
"type": "string",
"description": "Repository owner"
},
"pullNumber": {
"description": "Pull request number",
"type": "number"
"type": "number",
"description": "Pull request number"
},
"repo": {
"description": "Repository name",
"type": "string"
"type": "string",
"description": "Repository name"
}
},
"required": [
"owner",
"repo",
"pullNumber"
],
"type": "object"
}
},
"name": "merge_pull_request"
}
Loading
Loading