Skip to content
Open
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
33 changes: 16 additions & 17 deletions pkg/github/__toolsnaps__/create_branch.snap
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
{
"annotations": {
"title": "Create branch",
"readOnlyHint": false
"title": "Create branch"
},
"description": "Create a new branch in a GitHub repository",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"branch"
],
"properties": {
"branch": {
"description": "Name for new branch",
"type": "string"
"type": "string",
"description": "Name for new branch"
},
"from_branch": {
"description": "Source branch (defaults to repo default)",
"type": "string"
"type": "string",
"description": "Source branch (defaults to repo default)"
},
"owner": {
"description": "Repository owner",
"type": "string"
"type": "string",
"description": "Repository owner"
},
"repo": {
"description": "Repository name",
"type": "string"
"type": "string",
"description": "Repository name"
}
},
"required": [
"owner",
"repo",
"branch"
],
"type": "object"
}
},
"name": "create_branch"
}
51 changes: 25 additions & 26 deletions pkg/github/__toolsnaps__/create_or_update_file.snap
Original file line number Diff line number Diff line change
@@ -1,49 +1,48 @@
{
"annotations": {
"title": "Create or update file",
"readOnlyHint": false
"title": "Create or update file"
},
"description": "Create or update a single file in a GitHub repository. If updating, you must provide the SHA of the file you want to update. Use this tool to create or update a file in a GitHub repository remotely; do not use it for local file operations.",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"path",
"content",
"message",
"branch"
],
"properties": {
"branch": {
"description": "Branch to create/update the file in",
"type": "string"
"type": "string",
"description": "Branch to create/update the file in"
},
"content": {
"description": "Content of the file",
"type": "string"
"type": "string",
"description": "Content of the file"
},
"message": {
"description": "Commit message",
"type": "string"
"type": "string",
"description": "Commit message"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
"type": "string",
"description": "Repository owner (username or organization)"
},
"path": {
"description": "Path where to create/update the file",
"type": "string"
"type": "string",
"description": "Path where to create/update the file"
},
"repo": {
"description": "Repository name",
"type": "string"
"type": "string",
"description": "Repository name"
},
"sha": {
"description": "Required if updating an existing file. The blob SHA of the file being replaced.",
"type": "string"
"type": "string",
"description": "Required if updating an existing file. The blob SHA of the file being replaced."
}
},
"required": [
"owner",
"repo",
"path",
"content",
"message",
"branch"
],
"type": "object"
}
},
"name": "create_or_update_file"
}
33 changes: 16 additions & 17 deletions pkg/github/__toolsnaps__/create_repository.snap
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@
{
"annotations": {
"title": "Create repository",
"readOnlyHint": false
"title": "Create repository"
},
"description": "Create a new GitHub repository in your account or specified organization",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"autoInit": {
"description": "Initialize with README",
"type": "boolean"
"type": "boolean",
"description": "Initialize with README"
},
"description": {
"description": "Repository description",
"type": "string"
"type": "string",
"description": "Repository description"
},
"name": {
"description": "Repository name",
"type": "string"
"type": "string",
"description": "Repository name"
},
"organization": {
"description": "Organization to create the repository in (omit to create in your personal account)",
"type": "string"
"type": "string",
"description": "Organization to create the repository in (omit to create in your personal account)"
},
"private": {
"description": "Whether repo should be private",
"type": "boolean"
"type": "boolean",
"description": "Whether repo should be private"
}
},
"required": [
"name"
],
"type": "object"
}
},
"name": "create_repository"
}
43 changes: 21 additions & 22 deletions pkg/github/__toolsnaps__/delete_file.snap
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
{
"annotations": {
"title": "Delete file",
"readOnlyHint": false,
"destructiveHint": true
"destructiveHint": true,
"title": "Delete file"
},
"description": "Delete a file from a GitHub repository",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"path",
"message",
"branch"
],
"properties": {
"branch": {
"description": "Branch to delete the file from",
"type": "string"
"type": "string",
"description": "Branch to delete the file from"
},
"message": {
"description": "Commit message",
"type": "string"
"type": "string",
"description": "Commit message"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
"type": "string",
"description": "Repository owner (username or organization)"
},
"path": {
"description": "Path to the file to delete",
"type": "string"
"type": "string",
"description": "Path to the file to delete"
},
"repo": {
"description": "Repository name",
"type": "string"
"type": "string",
"description": "Repository name"
}
},
"required": [
"owner",
"repo",
"path",
"message",
"branch"
],
"type": "object"
}
},
"name": "delete_file"
}
27 changes: 13 additions & 14 deletions pkg/github/__toolsnaps__/fork_repository.snap
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
{
"annotations": {
"title": "Fork repository",
"readOnlyHint": false
"title": "Fork repository"
},
"description": "Fork a GitHub repository to your account or specified organization",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo"
],
"properties": {
"organization": {
"description": "Organization to fork to",
"type": "string"
"type": "string",
"description": "Organization to fork to"
},
"owner": {
"description": "Repository owner",
"type": "string"
"type": "string",
"description": "Repository owner"
},
"repo": {
"description": "Repository name",
"type": "string"
"type": "string",
"description": "Repository name"
}
},
"required": [
"owner",
"repo"
],
"type": "object"
}
},
"name": "fork_repository"
}
42 changes: 21 additions & 21 deletions pkg/github/__toolsnaps__/get_commit.snap
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
{
"annotations": {
"title": "Get commit details",
"readOnlyHint": true
"readOnlyHint": true,
"title": "Get commit details"
},
"description": "Get details for a commit from a GitHub repository",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"sha"
],
"properties": {
"include_diff": {
"default": true,
"type": "boolean",
"description": "Whether to include file diffs and stats in the response. Default is true.",
"type": "boolean"
"default": true
},
"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"
},
"sha": {
"description": "Commit SHA, branch name, or tag name",
"type": "string"
"type": "string",
"description": "Commit SHA, branch name, or tag name"
}
},
"required": [
"owner",
"repo",
"sha"
],
"type": "object"
}
},
"name": "get_commit"
}
Loading
Loading