pr-merge
Merge a GitHub pull request and clean up its local worktree or branch. Use when the user asks to merge a PR, land a pull request, or merge and clean up.
от Integralist★ 31 звезда на GitHub
Установить pr-merge в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Merge an open GitHub pull request and clean up its local worktree or branch.
- Interactive (default): Confirm before running
gh pr merge. --auto: Merge and run local cleanup without prompting once all checks pass, honouring runtime permissions and stopping on any blocker below.
Resolve the PR. Accept
--pr=<url|#number>; if omitted, infer the PR for the current branch withgh pr view. Rungh pr view <pr> --json number,url,title,state,isDraft,mergeable,mergeStateStatus,reviewDecision,headRefName,baseRefName. Stop and report ifstateis notOPEN,isDraftistrue, or merge conflicts, failing checks, or missing required reviews block merging.Confirm and merge. Check permitted strategies with
gh repo view --json squashMergeAllowed,mergeCommitAllowed,rebaseMergeAllowed,deleteBranchOnMerge. Default to--squashunless--strategy=<squash|merge|rebase>(or steering) overrides it. If an explicit strategy is disallowed by the repo, stop and report; if default squash is disallowed, use the sole permitted strategy or ask if multiple remain. Without--auto, present the PR title, URL,<base> <- <head>, merge strategy, and check/review summary, and wait for confirmation. Rungh pr merge <pr> --<strategy> --delete-branch(omitting--delete-branchwhendeleteBranchOnMergeistrue) and verifystateisMERGED.Clean up conditionally. Check
git worktree list --porcelainforheadRefName:- If a worktree holds
headRefName, read and follow worktree-cleanup with--pr=<pr-url>. - Otherwise, read and follow branch with
--cleanup=<headRefName>.
- If a worktree holds
Done when the PR is MERGED and local cleanup is complete.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(gh pr view:*) - 02
Bash(gh pr list:*) - 03
Bash(gh repo view:*) - 04
Bash(git status:*) - 05
Bash(git worktree list:*) - 06
Bash(git symbolic-ref --quiet --short HEAD) - 07
Bash(git symbolic-ref refs/remotes/origin/HEAD)
FAQ
Что делает скилл pr-merge?
Merge a GitHub pull request and clean up its local worktree or branch. Use when the user asks to merge a PR, land a pull request, or merge and clean up.
Как установить скилл pr-merge?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-merge запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…