smithery.ai

complete-pr

プルリクエストを完了する(マージ・クリーンアップ)

First seen Apr 5, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,681 B
  • docs SUMMARY.md 94 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

プルリクエストを完了する

手順

1. PR 番号の取得

引数が指定されていない場合、現在のブランチから PR 番号を取得する。

gh pr view --json number --jq .number

2. プルリクの状態を確認する

PR の状態、マージ可能性、ブランチ名を取得する。

gh pr view <PR_NUMBER> --json State,Mergeable,HeadBranch,Title

3. CI の実行結果を確認する

すべてのチェックが完了し、成功していることを確認する。

gh pr checks <PR_NUMBER>
  • すべてのチェックが pass でない場合は、ユーザーに確認する

4. マージ処理を行う

重要: ユーザーに最終確認してからマージを実行すること。

  • PR がまだマージされていない場合:
gh pr merge <PR_NUMBER> --squash --delete-branch
  • すでにマージ済みでリモートブランチが残っている場合:
git push origin --delete <BRANCH_NAME>

5. ローカル環境を整理する

develop ブランチに切り替えて最新にし、作業ブランチを削除する。

git checkout develop && git pull origin develop
git branch -D <BRANCH_NAME>
git fetch --prune

6. 完了をユーザーに報告する

  • マージが完了したことを報告
  • プレビュー環境やステージング環境での確認を促す(該当する場合)