Agent skill
issue-pr
現在のブランチでPull Requestを作成し、CIステータスを確認。「/issue-pr」で使用
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/devops/issue-pr-aoki-taquan-ruster-3fd5079a
SKILL.md
Issue PR
Instructions
- 現在のブランチ名を取得(
git branch --show-current) - ブランチ名から Issue番号を抽出(
feature/4-xxx→4) git log main..HEADでコミット内容を確認- PRタイトルとbodyを生成:
- タイトル: コミットメッセージまたはIssueタイトルベース
- body:
Closes #<number>を含める
gh pr createでPR作成- PR URLを表示
- 少し待ってから
gh pr checks <PR番号>でCIステータスを確認 - 全てpassしたら:
gh issue edit <number> --remove-label wipでwipラベルを削除- ユーザーに報告
- pendingなら待って再確認
- failなら原因を調査
CI確認の流れ
bash
# PR作成後、CIが開始されるまで少し待つ
sleep 20
# ステータス確認
gh pr checks <PR番号>
- pass: wipラベル削除、マージ可能
- pending: しばらく待って再確認
- fail:
gh run view <run_id> --log-failedで原因調査、修正してpush
Example
ブランチ feature/4-ethernet-frame で実行:
/issue-pr
実行結果:
- Issue #4 にリンクしたPRを作成
Closes #4がbodyに含まれる- PR URLを表示
- CIステータスを確認
- 全てpass: wipラベル削除、マージ準備完了を報告
Didn't find tool you were looking for?