merge-pull-request
БесплатноБез исполняемых скриптовНе проверенBuild, inspect, sign and optionally push a maintainer merge of a pull request with the vendored merge tool. Use when asked to merge a pull request.
от torrust★ 539 звёзд на GitHubОб этом скилле
Merging a Pull Request
Use this workflow only when a maintainer has selected an already reviewed pull request for merging. It constructs a local merge commit for inspection. It does not replace maintainer judgment, review, branch protection, or explicit authorization.
The repository-local entry point is:
./contrib/dev-tools/git/merge-pull-request.sh <pull-request-number>
It wraps the vendored github-merge.py tool, fixes the target to
torrust/torrust-tracker:develop, and creates temporary branches named:
pull/<number>/basepull/<number>/headpull/<number>/mergepull/<number>/local-merge
The full provenance, license, deterministic test boundary, and EPIC #2003 relationship are in
contrib/dev-tools/git/README-github-merge.md.
Mandatory Guardrails
- Verify the target is
developand the Git working tree is clean before starting. Preserve unrelated work with a commit or a named stash; never usegit reset --hardto discard it. - Run the repository-local wrapper, not a personal path outside this repository.
- Never start the merge tool without an interactive terminal: its prompts are read from standard
input, which must be a terminal. The vendored tool never ends at end of input, so a run with
redirected, closed, or piped input loops forever reprinting its prompt; the wrapper refuses to
start in that case. Use
--dry-runfor non-interactive validation. - Inspect the temporary merge and run the required validation before considering a signature.
- Never disable a repository ruleset to get a pull request merged, even temporarily. A forgotten
disabled ruleset silently removes protections; see
docs/github-rulesets.mdfor the active rulesets and the override policy. - Never type
sto sign orpushto push unless an authorized maintainer has explicitly confirmed that action in the current request. - If GPG reports a timeout while signing, stop the failed attempt. Do not bypass signing or use
--no-gpg-sign; ask the maintainer whether they prefer to retry the signed commit manually or have the agent rerun the same command while they enter the passphrase directly in the terminal prompt. Do not retry until the maintainer chooses, and never request or handle the passphrase in chat.
Merge Readiness
Before showing or running the merge command for a pull request, report these readiness checks to the maintainer. The ruleset requires no approvals and the tool only warns about missing ACKs, so these checks are repository convention rather than technical enforcement.
- Reviews: every review received so far is processed, and no actionable review thread is unresolved. No review from a named reviewer is required (see the ADR): report which reviewers reviewed which commit, and which did not review, but do not hold the pull request for them.
- Checks: every workflow check of the head commit is
passorskipping; a cancelled check needs attention like a failed one. A check run that a review service posts from its own GitHub App does not count (see Review-Service Check Runs). - Reviewer ACK: the other maintainer has commented
ACK <full head commit hash>on the head commit. This is recommended, not mandatory: the maintainer may waive it. Record a waiver as a durable comment on the pull request before merging. AnACKon an earlier commit does not count (see An ACK Names One Commit). - Review audit: the audit record passes
validate-audit-record.py(see theprocess-pr-reviewskill).
An agent never waives a check itself. When one is unmet, state which and ask the maintainer.
An ACK Names One Commit
An ACK <hash> counts only on the commit it names. Every later commit makes it stale, including a
commit that changes only the pull request's own audit record under
docs/pr-reviews/pr-<N>-review/. The reviewer and the maintainer then ACK the new head. The
maintainer decided this in issue #2949, and rejected a rule that would keep the earlier ACK valid.
To keep the second review short, list what the commits after the earlier ACK changed. <X> is the
commit the earlier ACK names and <H> is the head:
git log --no-renames --diff-merges=first-parent --name-only --format= <X>..<H>
When every listed path starts with docs/pr-reviews/pr-<N>-review/, the commits after <X> changed
only the audit record, and git diff <X>..<H> is the whole text to read. The command lists the paths
of each commit, not only the difference between the two ends, so a change outside the folder that a
later commit reverts is still listed. --diff-merges=first-parent lists the paths of a merge commit,
and
Установить merge-pull-request в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл merge-pull-request?
Build, inspect, sign and optionally push a maintainer merge of a pull request with the vendored merge tool. Use when asked to merge a pull request.
Как установить скилл merge-pull-request?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл merge-pull-request запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set 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…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic