github.get_pr_to_pass_ci_tests
Monitor GitHub CI checks for the current PR and fix any failures until they pass
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 155
- Forks
- 170
01 前言 Front Matter
- model
- haiku
- description
- Monitor GitHub CI checks for the current PR and fix any failures until they pass
02 资源文件 4
- 其他.gitignore44 B
- 参考文档INDEX.md4.6 KB
- 参考文档README.md4.0 KB
- 参考文档references/industry-conventions.md6.7 KB
03 SKILL.md 正文
Goal
- Monitor GitHub CI checks for the current PR, fix any failures found, and report status back on the PR
Workflow
Get the PR Number and Branch Name
-
Get the PR number
> GH_PR_NUM=$(gh pr view --json number -q .number) -
Get the branch name
> BRANCH_NAME=$(git branch --show-current)
Make Sure the PR Is Ready
-
Run
> gh pr view $GH_PR_NUM -
If the PR is a draft and not ready
> gh pr view $GH_PR_NUM gp_5 causify-ai/helpers#1353 Draft • gpsaggese (GP Saggese) wants to merge 2 commits into master from gp_5 • about 10 minutes ago +1499 -240 • ✓ Checks passingrun
> gh pr ready
Make Sure Local Tests Pass
- Use
/github.get_pr_to_pass_local_teststo run and fix the local unit tests for the branch
Run and Monitor GitHub CI
-
Start monitoring GitHub CI checks:
> gh pr checks --watch $GH_PR_NUM All checks were successful 0 cancelled, 0 failing, 5 successful, 2 skipped, and 0 pending checks NAME DESCRIPTION ELAPSED URL ✓ CodeQL/Analyze (actions) (dynamic) 37s https://github.com/causify-ai/helpers/actions/runs/34052614245/job/101538799648 ✓ CodeQL 3s https://github.com/causify-ai/helpers/runs/101538870379 ✓ Gitleaks Scan/Run gitleaks (pull_request) 11s https://github.com/causify-ai/helpers/actions/runs/34052615814/job/101538802083 ✓ Claude Code Review/claude-review (pull_request) 56s https://github.com/causify-ai/helpers/actions/runs/34052615817/job/101538802077 - Fast tests/run_fast_tests / run_tests (pull_request) https://github.com/causify-ai/helpers/actions/runs/34052615896/job/101538803046 - Slow tests/run_slow_tests / run_tests (pull_request) https://github.com/causify-ai/helpers/actions/runs/34052615907/job/101538803253 ✓ CodeQL/Analyze (python) (dynamic) 1m0s https://github.com/causify-ai/helpers/actions/runs/34052614245/job/101538799529 -
Monitor for any failures
-
Make sure that all the checks run and complete successfully
Report Status on the PR
- If GitHub CI is passing:
> gh pr comment $GH_PR_NUM --body "GitHub CI checks passing" - If there are failures, document them and post:
> gh pr comment $GH_PR_NUM --body "GitHub CI failures found: [error summary]. Investigating..."
Fix the Failures
- If failures were found, use
/pytest.fix_ci_teststo analyze and fix them - Commit and push the fix, then repeat "Run and Monitor GitHub CI" until it is green
Loop
- Keep repeating until all GitHub CI checks pass
Constraints
- This skill runs both when executed locally on a dev computer and remotely when executed on cloud (e.g., on GitHub or Anthropic infrastructure)
Verification
- [ ]
gh pr checks --watch $GH_PR_NUMreports all checks successful - [ ] A PR comment reports the final CI status
04 同仓库更多 Skills
tutorial_in_60_mins.propagate_docker_changes
Sync tutorial and class-project Docker files to match project_template
tutorial_in_60_mins.merge_markdown
Merge the content of a markdown file into a Jupyter notebook
tutorial_in_60_mins.format
Format a directory to follow the "Learn X in 60 Minutes" tutorial conventions
tutorial_in_60_mins.create
Create a tutorial directory for the Learn X in 60 Minutes conventions
todo.reorg_in_progress
Reorganize ai_task_queue.md so in-progress tasks, not-started tasks, and mislabeled topic headers sit under the right H1 stage
todo.reorg_headers
Reorganize ai_task_queue.md .md so every H2 topic matches ALL TOPICS and every H3 task sits under the right topic, keeping its H1 stage