Github.get pr ready to merge

From gpsaggese/helpers · View interactive version

Github.get pr ready to merge is an AI agent skill from the GitHub repository gpsaggese/helpers. Get the current PR to a state where it can be reviewed and merged

How to use this skill

Skill file

Goal

current PR, and fix anything that comes up, so the PR is ready to review and merge

Workflow

Create and Update a Plan

updated: [.] in progress, [x] done, [F] failed

```

# Plan: get PR #... ready to merge

```

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 the AI Lint and Add TODOs

```bash

> linters2/cc_lint.py --branch --add_todos

```

Resolve the Added TODOs

its TODO(ai_gp) items

Run the Standard Linter

```bash

> linters2/lint.py --branch

```

Fix Pyright Issues

```bash

> linters2/lint.py --clear_actions --action "pyright" --branch

```

Make Sure The Affected Local Tests Pass

```

> pytest <TEST_NAMES>

```

to iterate, then check all builds with pytest_multi_build.py

```

> pytest_multi_build.py --target <TEST_NAMES>

```

Make Sure Local Tests Pass

if it is a long task

Make Sure GitHub CI Passes

Never Commit Junk Files

junk: logs, tmp.* scratch files, and test-run caches like .pkl/.json

intended files, then force-push (git push --force-with-lease). Do not leave the

junk in history

Loop

local tests and GitHub CI checks all pass

Constraints

Anthropic infrastructure)

Verification

/github.get_pr_to_pass_ci_tests)

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.