AI Summary2. ブランチ名から Issue番号を抽出( → ) 7. 少し待ってから でCIステータスを確認
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "issue-pr" skill in my project. Please run this command in my terminal: # Install skill into your project (2 files) mkdir -p .claude/skills/issue-pr && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/issue-pr/SKILL.md "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/devops/issue-pr/SKILL.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/issue-pr/metadata.json "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/devops/issue-pr/metadata.json" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
現在のブランチでPull Requestを作成し、CIステータスを確認。「/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なら原因を調査
ステータス確認
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ラベル削除、マージ準備完了を報告
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster