Skip to content

fix: make failed_only a modifier for job logs#2674

Open
jstar0 wants to merge 1 commit into
github:mainfrom
jstar0:fix/job-logs-run-failed-only
Open

fix: make failed_only a modifier for job logs#2674
jstar0 wants to merge 1 commit into
github:mainfrom
jstar0:fix/job-logs-run-failed-only

Conversation

@jstar0

@jstar0 jstar0 commented Jun 11, 2026

Copy link
Copy Markdown

Summary

Fixes #2389.

get_job_logs currently treats failed_only as a mode switch, so run_id with failed_only=false errors instead of returning the run's job logs. This makes failed_only a modifier for either supported identifier.

Changes

  • Allow run_id to return logs for all jobs, with failed_only=true filtering that run to failed jobs.
  • Make job_id + failed_only=true check the job conclusion before fetching logs and return a tool error for non-failed jobs.
  • Reject ambiguous job_id + run_id input and missing-ID input before making GitHub API calls.
  • Update the generated tool documentation for the new parameter semantics.

Verification

go test ./pkg/github -run 'Test_ActionsGetJobLogs' -count=1 -v
go test ./pkg/github -count=1
go test ./...

I also ran script/generate-docs to refresh the generated README tool documentation.

@jstar0 jstar0 requested a review from a team as a code owner June 11, 2026 19:07
Guccitalo referenced this pull request Jun 11, 2026
- Fix README.md: Remove non-existent 'Claude Web' from description
- Add Windows PowerShell environment variable example for loading PAT from .env file

The previous documentation only showed bash syntax for loading environment
variables from .env files, which doesn't work on Windows PowerShell. This
adds a PowerShell equivalent to help Windows users set up the GitHub MCP
Server correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get_job_logs: run_id with failed_only=false should return all job logs; failed_only should be a consistent modifier

1 participant