Skip to content

fix(actions): allow run_id alone to get all job logs#2403

Open
Will-hxw wants to merge 2 commits intogithub:mainfrom
Will-hxw:fix/get-job-logs-all-logs
Open

fix(actions): allow run_id alone to get all job logs#2403
Will-hxw wants to merge 2 commits intogithub:mainfrom
Will-hxw:fix/get-job-logs-all-logs

Conversation

@Will-hxw
Copy link
Copy Markdown

Summary

  • Allow get_job_logs tool to return logs for all jobs in a workflow run when only run_id is provided
  • Previously this returned an error requiring job_id when failed_only was not true

Test plan

  • Build passes
  • Existing tests pass

🤖 Generated with Claude Code

…rors

The previous description gave AI models insufficient guidance on
GitHub code search syntax, leading to common mistakes like:
- Using \| instead of /...|.../ for regex OR
- Confusing filename: with path: qualifiers
- Misunderstanding boolean operator precedence

The new description explicitly documents:
- Qualifiers: repo:, org:, language:, path:, path:/regex/, symbol:, content:, is:
- Boolean operators: AND, OR, NOT, parentheses
- Regex syntax: surround with slashes e.g. /foo|bar/
- Glob patterns in path: path:*.ts, path:/src/**/*.js

Fixes github#2390
Allow get_job_logs tool to return logs for all jobs in a workflow
run when only run_id is provided (without failed_only parameter).
This matches the documented behavior where:
- run_id + failed_only=true returns only failed job logs
- run_id alone (or with failed_only=false) returns all job logs

Fixes github#2389
@Will-hxw Will-hxw requested a review from a team as a code owner April 29, 2026 02:20
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.

1 participant