approve-pr
Approve and merge a GitHub PR. Use when you want to approve and merge the current branch's PR, or a specific PR number.
от vultisig★ 22 звезды на GitHub
Установить approve-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Approve and Merge PR
Usage
/approve-pr — approves and merges the PR for the current branch
/approve-pr 123 — approves and merges PR #123
Workflow
1. Resolve PR Number
If a PR number was passed as argument, use it. Otherwise:
gh pr view --json number --jq '.number'
2. Check PR Status
gh pr view <number> --json title,state,mergeable,statusCheckRollup,reviews
- If
stateis notOPEN, abort and tell the user. - If
mergeableisCONFLICTING, abort and tell the user to resolve conflicts first. - Show a summary of the PR title and any failing checks before proceeding.
3. Approve
gh pr review <number> --approve
4. Merge (squash by default)
gh pr merge <number> --squash --auto
Use --auto so it merges once all required checks pass. If the PR is already mergeable now, it merges immediately.
5. Confirm
Print the PR URL and confirm it was approved and queued for merge.
Rules
- Never merge a PR with
state != OPEN - Never force-merge over failing required checks — use
--autoand let CI decide - Default merge strategy is squash; do not change this unless the user explicitly asks
- If you cannot approve your own PR (author restriction), tell the user and skip the approve step, then proceed to merge
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл approve-pr?
Approve and merge a GitHub PR. Use when you want to approve and merge the current branch's PR, or a specific PR number.
Как установить скилл approve-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл approve-pr запускает скрипты?
Нет, скилл состоит только из инструкций (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…