Skip to content

fix: surface gh stderr on GraphQL failure in pr-triage CLI - #1082

Merged
allenporter merged 1 commit into
Python-roborock:mainfrom
allenporter:pr1073_feedback_sync
Nov 24, 2026
Merged

allenporter merged 1 commit into
Python-roborock:mainfrom
allenporter:pr1073_feedback_sync

Conversation

@allenporter

Copy link
Copy Markdown
Contributor

Follow-up to post-merge review feedback on #1073 (#1073 (comment)).

Summary

  • Use check=False on subprocess.run in fetch_github_data() (.agents/skills/pr-triage/scripts/triage.py) and raise RuntimeError with proc.stderr (falling back to proc.stdout or the exit code) when gh api graphql exits non-zero, avoiding swallowing gh's error message or dumping the full GRAPHQL_QUERY into the traceback.

Verification

  • Verified happy path (python3 .agents/skills/pr-triage/scripts/triage.py prs --pr-limit 1).
  • Verified error path (--repo Python-roborock/does-not-exist-repo-xyz) surfaces gh's error cleanly.
  • uv run ruff check, uv run ruff format --check, and uv run mypy pass.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 00:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@allenporter
allenporter merged commit 005152d into Python-roborock:main Nov 24, 2026
9 checks passed
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.

3 participants