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
15 changes: 8 additions & 7 deletions pkg/github/__toolsnaps__/actions_get.snap
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
{
"annotations": {
"openWorldHint": true,
"readOnlyHint": true,
"title": "Get details of GitHub Actions resources (workflows, workflow runs, jobs, and artifacts)"
},
"description": "Get details about specific GitHub Actions resources.\nUse this tool to get details about individual workflows, workflow runs, jobs, and artifacts by their unique IDs.\n",
"inputSchema": {
"type": "object",
"required": [
"method",
"owner",
"repo",
"resource_id"
],
"properties": {
"method": {
"type": "string",
Expand All @@ -37,7 +32,13 @@
"type": "string",
"description": "The unique identifier of the resource. This will vary based on the \"method\" provided, so ensure you provide the correct ID:\n- Provide a workflow ID or workflow file name (e.g. ci.yaml) for 'get_workflow' method.\n- Provide a workflow run ID for 'get_workflow_run', 'get_workflow_run_usage', and 'get_workflow_run_logs_url' methods.\n- Provide an artifact ID for 'download_workflow_run_artifact' method.\n- Provide a job ID for 'get_workflow_job' method.\n"
}
}
},
"required": [
"method",
"owner",
"repo",
"resource_id"
]
},
"name": "actions_get"
}
1 change: 1 addition & 0 deletions pkg/github/__toolsnaps__/actions_list.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"annotations": {
"openWorldHint": true,
"readOnlyHint": true,
"title": "List GitHub Actions workflows in a repository"
},
Expand Down
12 changes: 6 additions & 6 deletions pkg/github/__toolsnaps__/actions_run_trigger.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
"description": "Trigger GitHub Actions workflow operations, including running, re-running, cancelling workflow runs, and deleting workflow run logs.",
"inputSchema": {
"type": "object",
"required": [
"method",
"owner",
"repo"
],
"properties": {
"inputs": {
"type": "object",
Expand Down Expand Up @@ -47,7 +42,12 @@
"type": "string",
"description": "The workflow ID (numeric) or workflow file name (e.g., main.yml, ci.yaml). Required for 'run_workflow' method."
}
}
},
"required": [
"method",
"owner",
"repo"
]
},
"name": "actions_run_trigger"
}
18 changes: 9 additions & 9 deletions pkg/github/__toolsnaps__/add_comment_to_pending_review.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
"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": {
"type": "string",
Expand Down Expand Up @@ -66,7 +58,15 @@
"LINE"
]
}
}
},
"required": [
"owner",
"repo",
"pullNumber",
"path",
"body",
"subjectType"
]
},
"name": "add_comment_to_pending_review"
}
14 changes: 7 additions & 7 deletions pkg/github/__toolsnaps__/add_issue_comment.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
"description": "Add a comment to a specific issue in a GitHub repository. Use this tool to add comments to pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add review comments.",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"issue_number",
"body"
],
"properties": {
"body": {
"type": "string",
Expand All @@ -28,7 +22,13 @@
"type": "string",
"description": "Repository name"
}
}
},
"required": [
"owner",
"repo",
"issue_number",
"body"
]
},
"name": "add_issue_comment"
}
16 changes: 8 additions & 8 deletions pkg/github/__toolsnaps__/add_project_item.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
"description": "Add a specific Project item for a user or org",
"inputSchema": {
"type": "object",
"required": [
"owner_type",
"owner",
"project_number",
"item_type",
"item_id"
],
"properties": {
"item_id": {
"type": "number",
Expand Down Expand Up @@ -41,7 +34,14 @@
"type": "number",
"description": "The project's number."
}
}
},
"required": [
"owner_type",
"owner",
"project_number",
"item_type",
"item_id"
]
},
"name": "add_project_item"
}
12 changes: 6 additions & 6 deletions pkg/github/__toolsnaps__/assign_copilot_to_issue.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
"description": "Assign Copilot to a specific issue in a GitHub repository.\n\nThis tool can help with the following outcomes:\n- a Pull Request created with source code changes to resolve the issue\n\n\nMore information can be found at:\n- https://docs.github.com/en/copilot/using-github-copilot/using-copilot-coding-agent-to-work-on-tasks/about-assigning-tasks-to-copilot\n",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"issueNumber"
],
"properties": {
"issueNumber": {
"type": "number",
Expand All @@ -24,7 +19,12 @@
"type": "string",
"description": "Repository name"
}
}
},
"required": [
"owner",
"repo",
"issueNumber"
]
},
"name": "assign_copilot_to_issue",
"icons": [
Expand Down
12 changes: 6 additions & 6 deletions pkg/github/__toolsnaps__/cancel_workflow_run.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
"description": "Cancel a workflow run",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"run_id"
],
"properties": {
"owner": {
"type": "string",
Expand All @@ -23,7 +18,12 @@
"type": "number",
"description": "The unique identifier of the workflow run"
}
}
},
"required": [
"owner",
"repo",
"run_id"
]
},
"name": "cancel_workflow_run"
}
12 changes: 6 additions & 6 deletions pkg/github/__toolsnaps__/create_branch.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
"description": "Create a new branch in a GitHub repository",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"branch"
],
"properties": {
"branch": {
"type": "string",
Expand All @@ -27,7 +22,12 @@
"type": "string",
"description": "Repository name"
}
}
},
"required": [
"owner",
"repo",
"branch"
]
},
"name": "create_branch"
}
10 changes: 5 additions & 5 deletions pkg/github/__toolsnaps__/create_gist.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
"description": "Create a new gist",
"inputSchema": {
"type": "object",
"required": [
"filename",
"content"
],
"properties": {
"content": {
"type": "string",
Expand All @@ -27,7 +23,11 @@
"description": "Whether the gist is public",
"default": false
}
}
},
"required": [
"filename",
"content"
]
},
"name": "create_gist"
}
18 changes: 9 additions & 9 deletions pkg/github/__toolsnaps__/create_or_update_file.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
"description": "Create or update a single file in a GitHub repository. \nIf updating, you should 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.\n\nIn order to obtain the SHA of original file version before updating, use the following git command:\ngit ls-tree HEAD \u003cpath to file\u003e\n\nIf the SHA is not provided, the tool will attempt to acquire it by fetching the current file contents from the repository, which may lead to rewriting latest committed changes if the file has changed since last retrieval.\n",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"path",
"content",
"message",
"branch"
],
"properties": {
"branch": {
"type": "string",
Expand Down Expand Up @@ -42,7 +34,15 @@
"type": "string",
"description": "The blob SHA of the file being replaced."
}
}
},
"required": [
"owner",
"repo",
"path",
"content",
"message",
"branch"
]
},
"name": "create_or_update_file"
}
16 changes: 8 additions & 8 deletions pkg/github/__toolsnaps__/create_pull_request.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
"description": "Create a new pull request in a GitHub repository.",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"title",
"head",
"base"
],
"properties": {
"base": {
"type": "string",
Expand Down Expand Up @@ -45,7 +38,14 @@
"type": "string",
"description": "PR title"
}
}
},
"required": [
"owner",
"repo",
"title",
"head",
"base"
]
},
"name": "create_pull_request"
}
8 changes: 4 additions & 4 deletions pkg/github/__toolsnaps__/create_repository.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"description": "Create a new GitHub repository in your account or specified organization",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"autoInit": {
"type": "boolean",
Expand All @@ -29,7 +26,10 @@
"type": "boolean",
"description": "Whether repo should be private"
}
}
},
"required": [
"name"
]
},
"name": "create_repository"
}
16 changes: 8 additions & 8 deletions pkg/github/__toolsnaps__/delete_file.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
"description": "Delete a file from a GitHub repository",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"path",
"message",
"branch"
],
"properties": {
"branch": {
"type": "string",
Expand All @@ -34,7 +27,14 @@
"type": "string",
"description": "Repository name"
}
}
},
"required": [
"owner",
"repo",
"path",
"message",
"branch"
]
},
"name": "delete_file"
}
Loading