Skip to content
Back to skills

Github.Get Pr To Pass Ci Tests

ASecurity

Monitor GitHub CI checks for the current PR and fix any failures until they pass

  • 158 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 7, 2026
testingpythongobashgit

Works with

  • claude code

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add gpsaggese/helpers --skill github.get_pr_to_pass_ci_tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github.Get Pr To Pass Ci Tests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github.Get Pr To Pass Ci Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gpsaggese-github-get-pr-to-pass-ci-tests/badge)](https://www.skillsdirectory.com/skills/gpsaggese-github-get-pr-to-pass-ci-tests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Monitor GitHub CI checks for the current PR and fix any failures until they pass
model: haiku
---

# Goal
- Monitor GitHub CI checks for the current PR, fix any failures, and report status
  on the PR

# Workflow

## Get the PR Number and Branch Name
- Get the PR number
  ```bash
  > GH_PR_NUM=$(gh pr view --json number -q .number)
  ```

- Get the branch name
  ```bash
  > BRANCH_NAME=$(git branch --show-current)
  ```

## Make Sure the PR Is Ready

- Run

  ```bash
  > gh pr view $GH_PR_NUM
  ```

- If the PR is a draft and not ready, it looks like this

  ```bash
  > 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 passing
  ```

  run

  ```bash
  > gh pr ready
  ```

## Make Sure Local Tests Pass

- Use `/github.get_pr_to_pass_local_tests` to run and fix the local unit tests for
  the branch

## Run and Monitor GitHub CI

- Start monitoring GitHub CI checks:

  ```bash
  > 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, and make sure all checks run and complete successfully

## Report Status on the PR
- If GitHub CI is passing:
  ```bash
  > gh pr comment $GH_PR_NUM --body "GitHub CI checks passing"
  ```
- If there are failures, document them and post:
  ```bash
  > 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_tests` to analyze and fix them
- Commit and push the fix, then repeat "Run and Monitor GitHub CI" until it is green

## Loop
- Repeat until all GitHub CI checks pass

# Constraints
- This skill runs both locally on a dev computer and remotely on cloud (e.g., GitHub
  or Anthropic infrastructure)

# Verification

- [ ] `gh pr checks --watch $GH_PR_NUM` reports all checks successful
- [ ] A PR comment reports the final CI status

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.