Github Get Job Log
github_get_job_logFetch the tail of a GitHub Actions job log to find why a job failed, since failures report last. Cap the returned bytes or check the log size without downloading it.
Instructions
Fetches the end of a GitHub Actions job's log, capped at max_bytes. A job reports its failure last, so a cut keeps the tail. GitHub redirects to a storage host for one minute, and the download goes there without the token. See #500.
Workflow and conventions: github_get_skill('pr-analysis').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The id of a GitHub Actions check run from github_get_pr_status_checks | |
| max_bytes | No | Cap on the log returned, kept from the end. Pass 0 to learn the size without reading the log | |
| repo_name | Yes | ||
| repo_owner | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | Yes | ||
| job_id | Yes | ||
| truncated | Yes | ||
| bytes_total | Yes | ||
| bytes_returned | Yes |