بنقرة واحدة
git-pull-request-status
Check pull request status, CI/CD checks, and explain failures with actionable recommendations
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Check pull request status, CI/CD checks, and explain failures with actionable recommendations
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Given a TheRock nightly build (URL or run-id), return the rocm-systems pin_sha used in that build
Check whether a given rocm-systems commit is included in a specific TheRock nightly build
Find the first TheRock nightly build that includes a given rocm-systems commit
Reviews Pull Requests or local diffs with an 8-agent fan-out covering static analysis, dead code, code smells + quality (naming, complexity, single-responsibility, magic numbers), language rules (C++/Python/CMake), architecture, simplification, performance (hot-path classification, allocations, locks, I/O), and undefined behaviour (signed overflow, lifetime, strict aliasing, data races, sanitizer coverage; C/C++/unsafe-Rust only). Use when the user asks to "review this PR", "review the diff", "audit this branch", "/pr-review", or when staging changes before push.
Walk through a PR review interactively, one finding at a time. Generate review via pr-review, then for each issue present analysis + proposed inline comment, let user accept/edit/skip, accumulate into a PENDING GitHub review, submit at end.
Use when user wants to list, analyze, review, or summarize GitHub PR comments on a pull request number or URL
| name | git-pull-request-status |
| description | Check pull request status, CI/CD checks, and explain failures with actionable recommendations |
Comprehensive PR status checking - verifies CI/CD checks, review status, and provides detailed explanations of failures.
This skill:
┌─────────────────────────────────────────────────────────────────┐
│ Phase 0: Verify gh CLI │
│ Invoke: git-gh-client │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Phase 1: Get PR Number │
│ Ask user for PR number or auto-detect current branch │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Phase 2: Fetch PR Status Data │
│ - Basic PR info (state, reviews) │
│ - Status check rollup (all CI/CD checks) │
│ - Review status │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Phase 3: Analyze Status Checks │
│ - Parse check results │
│ - Identify failures/errors │
│ - Categorize by type │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Phase 4: Fetch Failure Details │
│ For each failed check: │
│ - Get check run details │
│ - Fetch logs (if GitHub Actions) │
│ - Extract error messages │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Phase 5: Explain and Recommend │
│ - Explain each failure in plain English │
│ - Suggest fixes │
│ - Provide merge readiness summary │
└─────────────────────────────────────────────────────────────────┘
**FIRST ACTION: Invoke `git-gh-client` skill**
This ensures gh CLI is installed and authenticated.
If not available, git-gh-client provides installation instructions.
Ask user: "Which PR do you want to check? (Enter PR number)"
# Get current branch
current_branch=$(git branch --show-current)
# Find PR for current branch
gh pr list --head "$current_branch" --json number --jq '.[0].number'
If found, ask user: "Found PR #123 for branch feature-branch. Check this PR?"
Use git-gh-client Phase 3 commands to fetch PR status:
gh pr view <PR_NUMBER> --json statusCheckRollup,reviewDecision,mergeable,...gh pr checks <PR_NUMBER> || true (always handle exit code!)See git-gh-client for full command syntax and exit code handling.
| Field | Description |
|---|---|
state | OPEN, CLOSED, MERGED |
isDraft | Is this a draft PR? |
reviewDecision | APPROVED, CHANGES_REQUESTED, REVIEW_REQUIRED |
mergeable | MERGEABLE, CONFLICTING, UNKNOWN |
statusCheckRollup | Array of all status checks |
| Conclusion | Status | Action Required |
|---|---|---|
SUCCESS | ✅ Passed | None |
FAILURE | ❌ Failed | Investigate |
ERROR | ⚠️ Error | Investigate |
PENDING | 🔄 Running | Wait |
SKIPPED | ⏭️ Skipped | Verify if intentional |
CANCELLED | 🚫 Cancelled | Re-run if needed |
TIMED_OUT | ⏱️ Timeout | Optimize or re-run |
For each FAILURE or ERROR, use git-gh-client commands to:
gh api repos/{owner}/{repo}/check-runs/...gh run view <RUN_ID> --log-failedSee git-gh-client Phase 3 for full API commands.
Common error patterns to look for in logs:
| Pattern | Meaning |
|---|---|
FAILED / ERROR | Test or build failure |
Compilation failed | Build error |
Test failed: | Specific test failure |
AssertionError | Test assertion failure |
SyntaxError | Code syntax error |
lint: error | Linting error |
coverage: failed | Code coverage below threshold |
timeout | Operation timed out |
This is the unique value of this skill - interpreting results and providing actionable guidance.
# PR Status Report: #<PR_NUMBER> - <PR_TITLE>
## Overall Status
**Merge Readiness:** [Ready ✅ | Not Ready ❌ | Waiting 🔄]
| Check Category | Status |
|----------------|--------|
| CI/CD Checks | <STATUS> |
| Code Reviews | <STATUS> |
| Merge Conflicts | <STATUS> |
| Draft Status | <STATUS> |
---
## Status Checks Summary
**Total:** X checks | ✅ Y passed | ❌ Z failed | 🔄 W pending
### ✅ Passed Checks (Y)
- Check name 1
- Check name 2
### ❌ Failed Checks (Z)
#### 1. Check Name
**Status:** FAILURE
**Type:** [GitHub Actions / External Check]
**Details URL:** <url>
**Error:**
```
Explanation:
Recommended Fix:
Related Files:
...
Decision: [APPROVED ✅ | CHANGES_REQUESTED ❌ | REVIEW_REQUIRED 🔍]
Mergeable: [Yes ✅ | No (Conflicts) ❌ | Unknown ⚠️]
### Common Failure Explanations
#### Build Failures
```markdown
**Compilation Error**
The C++ build failed due to compilation errors.
**Common causes:**
- Missing header files
- Syntax errors - Undefined symbols
- Incompatible types
**Fix:**
1. Check the error message for the specific file and line
2. Review recent changes to that file
3. Ensure all dependencies are properly included
4. Run build locally: `cmake --build build`
**Unit Test Failure**
Test suite failed - X out of Y tests failed.
**Common causes:**
- Logic errors in new code
- Broken assumptions
- Missing test data
- Flaky tests (intermittent failures)
**Fix:**
1. Run the specific test locally: `./build/test_binary --gtest_filter=TestName`
2. Check test output for assertion failures
3. Debug the failing test case
4. If flaky, check for timing issues or race conditions
**Code Style Check Failed**
Code doesn't meet style guidelines.
**Common causes:**
- Formatting issues (indentation, spacing)
- Naming violations
- Missing documentation
**Fix:**
1. Run linter locally: `clang-format -i file.cpp`
2. Check linter output for specific violations
3. Apply auto-fix if available
4. Review style guide for manual fixes
**Code Coverage Below Threshold**
New code lacks sufficient test coverage.
**Current coverage:** X%
**Required:** Y%
**Fix:**
1. Identify untested code paths
2. Add unit tests for new functions/branches
3. Run coverage report locally: `gcov` or `pytest --cov`
4. Ensure edge cases are tested
After creating a PR with `git-prepare-pull-request`:
→ Invoke `git-pull-request-status` to check initial CI/CD results
→ Wait for checks to complete
→ Address any immediate failures
While reviewing with `pr-review`:
→ Invoke `git-pull-request-status` to verify checks before review
→ Ensure CI/CD passes before detailed code review
→ Check for merge conflicts
See git-gh-client for commands to:
❌ PR #<NUMBER> not found.
**Possible causes:**
- Invalid PR number
- PR is in different repository
- Insufficient permissions
**Fix:**
- Verify PR number: `gh pr list`
- Check you're in correct repository
- Ensure gh is authenticated: `gh auth status`
ℹ️ No status checks configured for this PR.
This repository may not have CI/CD pipelines set up.
The PR can be merged without automated checks (if allowed by repo settings).
🔄 Some checks are still running...
**Pending:**
- Check 1 (GitHub Actions)
- Check 2 (External)
**Recommendation:** Wait for checks to complete before merging.
Would you like me to:
1. Wait and re-check in 1 minute
2. Show current results only
See git-gh-client for all gh command syntax. This skill focuses on interpreting results.