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
29 changes: 29 additions & 0 deletions pkg/github/__toolsnaps__/cancel_workflow_run.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"annotations": {
"title": "Cancel workflow run"
},
"description": "Cancel a workflow run",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"run_id"
],
"properties": {
"owner": {
"type": "string",
"description": "Repository owner"
},
"repo": {
"type": "string",
"description": "Repository name"
},
"run_id": {
"type": "number",
"description": "The unique identifier of the workflow run"
}
}
},
"name": "cancel_workflow_run"
}
30 changes: 30 additions & 0 deletions pkg/github/__toolsnaps__/delete_workflow_run_logs.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"annotations": {
"destructiveHint": true,
"title": "Delete workflow logs"
},
"description": "Delete logs for a workflow run",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"run_id"
],
"properties": {
"owner": {
"type": "string",
"description": "Repository owner"
},
"repo": {
"type": "string",
"description": "Repository name"
},
"run_id": {
"type": "number",
"description": "The unique identifier of the workflow run"
}
}
},
"name": "delete_workflow_run_logs"
}
30 changes: 30 additions & 0 deletions pkg/github/__toolsnaps__/download_workflow_run_artifact.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"annotations": {
"readOnlyHint": true,
"title": "Download workflow artifact"
},
"description": "Get download URL for a workflow run artifact",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"artifact_id"
],
"properties": {
"artifact_id": {
"type": "number",
"description": "The unique identifier of the artifact"
},
"owner": {
"type": "string",
"description": "Repository owner"
},
"repo": {
"type": "string",
"description": "Repository name"
}
}
},
"name": "download_workflow_run_artifact"
}
46 changes: 46 additions & 0 deletions pkg/github/__toolsnaps__/get_job_logs.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"annotations": {
"readOnlyHint": true,
"title": "Get job logs"
},
"description": "Download logs for a specific workflow job or efficiently get all failed job logs for a workflow run",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo"
],
"properties": {
"failed_only": {
"type": "boolean",
"description": "When true, gets logs for all failed jobs in run_id"
},
"job_id": {
"type": "number",
"description": "The unique identifier of the workflow job (required for single job logs)"
},
"owner": {
"type": "string",
"description": "Repository owner"
},
"repo": {
"type": "string",
"description": "Repository name"
},
"return_content": {
"type": "boolean",
"description": "Returns actual log content instead of URLs"
},
"run_id": {
"type": "number",
"description": "Workflow run ID (required when using failed_only)"
},
"tail_lines": {
"type": "number",
"description": "Number of lines to return from the end of the log",
"default": 500
}
}
},
"name": "get_job_logs"
}
30 changes: 30 additions & 0 deletions pkg/github/__toolsnaps__/get_workflow_run.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"annotations": {
"readOnlyHint": true,
"title": "Get workflow run"
},
"description": "Get details of a specific workflow run",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"run_id"
],
"properties": {
"owner": {
"type": "string",
"description": "Repository owner"
},
"repo": {
"type": "string",
"description": "Repository name"
},
"run_id": {
"type": "number",
"description": "The unique identifier of the workflow run"
}
}
},
"name": "get_workflow_run"
}
30 changes: 30 additions & 0 deletions pkg/github/__toolsnaps__/get_workflow_run_logs.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"annotations": {
"readOnlyHint": true,
"title": "Get workflow run logs"
},
"description": "Download logs for a specific workflow run (EXPENSIVE: downloads ALL logs as ZIP. Consider using get_job_logs with failed_only=true for debugging failed jobs)",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"run_id"
],
"properties": {
"owner": {
"type": "string",
"description": "Repository owner"
},
"repo": {
"type": "string",
"description": "Repository name"
},
"run_id": {
"type": "number",
"description": "The unique identifier of the workflow run"
}
}
},
"name": "get_workflow_run_logs"
}
30 changes: 30 additions & 0 deletions pkg/github/__toolsnaps__/get_workflow_run_usage.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"annotations": {
"readOnlyHint": true,
"title": "Get workflow usage"
},
"description": "Get usage metrics for a workflow run",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"run_id"
],
"properties": {
"owner": {
"type": "string",
"description": "Repository owner"
},
"repo": {
"type": "string",
"description": "Repository name"
},
"run_id": {
"type": "number",
"description": "The unique identifier of the workflow run"
}
}
},
"name": "get_workflow_run_usage"
}
49 changes: 49 additions & 0 deletions pkg/github/__toolsnaps__/list_workflow_jobs.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"annotations": {
"readOnlyHint": true,
"title": "List workflow jobs"
},
"description": "List jobs for a specific workflow run",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"run_id"
],
"properties": {
"filter": {
"type": "string",
"description": "Filters jobs by their completed_at timestamp",
"enum": [
"latest",
"all"
]
},
"owner": {
"type": "string",
"description": "Repository owner"
},
"page": {
"type": "number",
"description": "Page number for pagination (min 1)",
"minimum": 1
},
"perPage": {
"type": "number",
"description": "Results per page for pagination (min 1, max 100)",
"minimum": 1,
"maximum": 100
},
"repo": {
"type": "string",
"description": "Repository name"
},
"run_id": {
"type": "number",
"description": "The unique identifier of the workflow run"
}
}
},
"name": "list_workflow_jobs"
}
41 changes: 41 additions & 0 deletions pkg/github/__toolsnaps__/list_workflow_run_artifacts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"annotations": {
"readOnlyHint": true,
"title": "List workflow artifacts"
},
"description": "List artifacts for a workflow run",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"run_id"
],
"properties": {
"owner": {
"type": "string",
"description": "Repository owner"
},
"page": {
"type": "number",
"description": "Page number for pagination (min 1)",
"minimum": 1
},
"perPage": {
"type": "number",
"description": "Results per page for pagination (min 1, max 100)",
"minimum": 1,
"maximum": 100
},
"repo": {
"type": "string",
"description": "Repository name"
},
"run_id": {
"type": "number",
"description": "The unique identifier of the workflow run"
}
}
},
"name": "list_workflow_run_artifacts"
}
Loading
Loading