pr-finisher
БесплатноБез исполняемых скриптовНе проверенPrepare an open pull request for merge from a GitHub Copilot cloud agent. Drives Reviews, local validation, and Mergeable to a ready state. Does not merge…
от github★ 5 758 звёзд на GitHubОб этом скилле
PR Finisher
Drive an open PR for the current branch to a merge-ready state from a GitHub Copilot cloud agent. Do not merge. When everything you can act on is done, report ready-for-human-merge and stop.
Execution context
This skill runs inside a GitHub Copilot cloud agent, not on a developer's machine.
- The agent's pushes do not trigger CI. Workflows on the PR will not re-run after the agent commits. Any existing
statusCheckRollupreflects an earlier HEAD and goes stale the moment the agent pushes. - Commit and push on every iteration that changes files. Changes that are not pushed are not available to the user.
- Local
maketargets are the agent's authoritative correctness signal before push. CI is observational only. - Re-running CI is a hand-off to a human (close/reopen the PR,
workflow_dispatch, or a push from a maintainer). The agent must surface this in its summary. - No watch / no sleep loops. The agent has no async wait state; one pass + summary + stop.
Three merge-ready conditions
A PR is merge-ready when all three are satisfied. Work them concurrently.
| Condition | Definition | Agent's signal |
|---|---|---|
| Reviews | Every unresolved in-scope review thread is addressed on its merits, replied to, and resolved, including GitHub Actions bot threads/comments (github-actions[bot]). Code changes alone do not satisfy this. Threads where Copilot has already replied with a substantive answer must be resolved before delegating to copilot-review. |
copilot-review skill + GraphQL reviewThreads |
| Checks | Local formatting, lint, and impacted unit tests pass; broader tests run when required by affected code or prior CI failures. Last-known CI failures reviewed at log level. | make targets locally; gh pr checks / gh run view --log-failed for prior runs |
| Mergeable | PR is OPEN, not draft, mergeable: MERGEABLE, not BEHIND if the repo requires up-to-date branches. |
gh pr view --json mergeable,mergeStateStatus,state,isDraft |
Because the agent cannot re-trigger CI, "Checks" is satisfied at the agent's level when local validation passes and prior CI failures have been root-caused and fixed in the pushed commits. Final green CI requires a human to re-trigger after the agent stops.
Top-level PR comments and review bodies are useful feedback but not a merge gate. Read and action useful ones; do not block on them.
Hard rules
- Autopilot mode: Never ask for confirmation before taking action. Never prompt with "Should I proceed?", "Do you want me to…?", or any equivalent. Always act immediately and autonomously.
- Do not merge. Never run
gh pr merge, enable auto-merge, or enqueue. This skill stops at "ready for merge." - Do not post stand-alone PR comments. Only reply on existing review threads / comments that need a response. Do not ping reviewers or CODEOWNERS.
- Always disable pagers for
gh: prefix withGH_PAGER=""or pipe throughcat. Without this, commands hang in non-interactive shells. - Read PR state once per pass and reuse it. Cache the initial
gh pr viewpayload in a local snapshot file and usejqagainst that file until you perform an action that can change PR state (for example: push, update branch, resolve conflicts). Do not re-run overlappinggh pr viewcalls within the same unchanged turn sequence. - Ignore platform-managed bot PRs by default. Stop without updating PRs authored by
dependabot[bot],app/dependabot,renovate[bot], or another unrecognized bot unless the user explicitly asks to handle that bot. Continue for trusted GitHub automation such asapp/github-copilotandgithub-actions[bot]. - Never wait for CI to re-run. No
bash sleep, nogh run watch, nogh pr checks --watch, no re-check loop after push. The agent's pushes will not trigger workflows; waiting is futile. - Local validation is non-negotiable before each push. Because CI will not re-run, the only correctness gate the agent gets is
make ...locally. Treat a green local run as the bar. - Commit and push every iteration that produces file changes. Unpushed changes are not visible to the user.
- Reviews are not done until reply + resolve both succeed. Code change alone ≠ thread handled.
- Smallest fix that works. Don't change unrelated code. Fix lint before tests.
- Pre-existing unrelated failures → identify explicitly in the summary; do not guess-fix.
CI-fix anti-patterns (do not do these)
A failing CI step is a signal, not a nuisance. Even though the agent cannot re-run CI to confirm, the following are forbidden and should trigger ask_user instead:
- Disabling, skipping, or neutering shared tooling (build caches, lint rules, type checks, env vars, required checks) to make a failure go away.
- "Temporary" disables with a TODO to re-enable later. They outlive the PR and become permanent.
- Lowering coverage thresholds, removing assertions,
Установить pr-finisher в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pr-finisher?
Prepare an open pull request for merge from a GitHub Copilot cloud agent. Drives Reviews, local validation, and Mergeable to a ready state. Does not merge, and cannot trigger CI.
Как установить скилл pr-finisher?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-finisher запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub