Github.get pr to pass local tests

From gpsaggese/helpers · View interactive version

Github.get pr to pass local tests is an AI agent skill from the GitHub repository gpsaggese/helpers. Make the local unit tests pass for the current PR

How to use this skill

Skill file

Goal

Workflow

Create and Update a Plan

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)

```

Run Local Regressions

```bash

> pytest_multi_build.py --target . 2>&1 --timeout -1 | tee tmp.auto_task.pytest_multi_build.log

```

Check Regressions to Complete

```bash

> pytest_failed_multi_build.py 2>&1 | tee tmp.auto_task.pytest_failed_multi_build.log

```

Report Status on the PR

```bash

> gh pr comment $GH_PR_NUM --body "Local tests passing"

```

```bash

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

```

Fix the Failures

what failed and use /pytest.fix_local_tests to analyze and fix them

Never Commit Junk Files

untracked file (logs, tmp.* scratch files, test-run artifacts like

.pkl/.json caches), not just the intended files

of the intended fix

intended files and force-push (git push --force-with-lease)

Loop

Constraints

(e.g., on GitHub 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.