verify-pr-logs
Installation
SKILL.md
Verify PR Logs
You are helping the user diagnose and fix CI failures on a pull request by fetching GitHub Actions logs, triaging the failure type, and implementing the appropriate fix.
Always use the gh CLI to interact with GitHub. Never ask the user to copy-paste logs.
Step 1: Identify the Pull Request
Determine the PR to analyze:
-
If the user provides a PR number, use it directly
-
Otherwise, detect from the current branch:
gh pr view --json number,title,url,headRefName -
If no PR is found for the current branch, inform the user and ask for a PR number