Github.get pr to pass ci tests

From gpsaggese/helpers · View interactive version

Github.get pr to pass ci tests is an AI agent skill from the GitHub repository gpsaggese/helpers. Monitor GitHub CI checks for the current PR and fix any failures until they pass

How to use this skill

Skill file

Goal

on the PR

Workflow

Get the PR Number and Branch Name

```bash

> GH_PR_NUM=$(gh pr view --json number -q .number)

```

```bash

> BRANCH_NAME=$(git branch --show-current)

```

Make Sure the PR Is Ready

```bash

> gh pr view $GH_PR_NUM

```

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

the branch

Run and Monitor GitHub CI

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

✓ CodeQL/Analyze (python) (dynamic) 1m0s https://github.com/causify-ai/helpers/actions/runs/34052614245/job/101538799529

```

Report Status on the PR

```bash

> gh pr comment $GH_PR_NUM --body "GitHub CI checks passing"

```

```bash

> gh pr comment $GH_PR_NUM --body "GitHub CI failures found: [error summary]. Investigating..."

```

Fix the Failures

Loop

Constraints

or Anthropic infrastructure)

Verification

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.