Command Palette

Search for a command to run...

Назад к скиллам
скилл № 65623

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от 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 state is not OPEN, abort and tell the user.
  • If mergeable is CONFLICTING, 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 --auto and 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), без исполняемых скриптов.

Похожие скиллы

Сравнить approve-pr с