87a1110c15
Sort all JSON object keys alphabetically at every level in toolsnaps by unmarshaling and remarshaling. This leverages Go's built-in behavior where json.Marshal automatically sorts map keys alphabetically, ensuring consistent field ordering and eliminating noop churn in diffs. Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
{
|
|
"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": {
|
|
"properties": {
|
|
"failed_only": {
|
|
"description": "When true, gets logs for all failed jobs in run_id",
|
|
"type": "boolean"
|
|
},
|
|
"job_id": {
|
|
"description": "The unique identifier of the workflow job (required for single job logs)",
|
|
"type": "number"
|
|
},
|
|
"owner": {
|
|
"description": "Repository owner",
|
|
"type": "string"
|
|
},
|
|
"repo": {
|
|
"description": "Repository name",
|
|
"type": "string"
|
|
},
|
|
"return_content": {
|
|
"description": "Returns actual log content instead of URLs",
|
|
"type": "boolean"
|
|
},
|
|
"run_id": {
|
|
"description": "Workflow run ID (required when using failed_only)",
|
|
"type": "number"
|
|
},
|
|
"tail_lines": {
|
|
"default": 500,
|
|
"description": "Number of lines to return from the end of the log",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"owner",
|
|
"repo"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"name": "get_job_logs"
|
|
} |