gh-unlink-subissue
GitHub Sub-issue 紐付け解除スキル
親 Issue から子 Issue の Sub-issue 紐付けを解除します。
前提条件
ghCLI がインストール・認証済みであること- 対象リポジトリへのアクセス権があること
入力
ユーザーから以下の情報を収集してください:
- 親 Issue:
owner/repo#number形式または GitHub URL - 子 Issue:
owner/repo#number形式または GitHub URL
手順
Step 1: Issue の Node ID を取得
# 親 Issue
PARENT_ID=$(gh api graphql -f query='
query($owner: String!, $repo: String!, $number: Int!) {
repository(owner: $owner, name: $repo) {
issue(number: $number) { id }
}
}' -f owner="OWNER" -f repo="REPO" -F number=NUMBER \
-q '.data.repository.issue.id')
# 子 Issue
CHILD_ID=$(gh api graphql -f query='
query($owner: String!, $repo: String!, $number: Int!) {
repository(owner: $owner, name: $repo) {
issue(number: $number) { id }
}
}' -f owner="OWNER" -f repo="REPO" -F number=NUMBER \
-q '.data.repository.issue.id')
Step 2: removeSubIssue mutation で紐付け解除
gh api graphql -f query='
mutation($parent: ID!, $child: ID!) {
removeSubIssue(input: {issueId: $parent, subIssueId: $child}) {
issue { id title }
subIssue { id title }
}
}' -f parent="$PARENT_ID" -f child="$CHILD_ID"
Step 3: 結果の確認
解除が成功したら、親 Issue と子 Issue のタイトルを表示して結果を報告してください。
注意事項
- 紐付けが存在しない場合はエラーが返る
- 解除しても Issue 自体は削除されない(紐付け関係のみ解除)
More from seika139/dotfiles
creative-frontend-aesthetics
AI特有の「ありきたりなデザイン(AI slop)」を回避し、独創的で洗練されたUIを構築する。LP、ダッシュボード、アプリのフロントエンド実装時に適用。
117high-end-typography
汎用的なフォントを避け、デザイン性の高いタイポグラフィを選択してフロントエンドの質を向上させるスキル。UI制作やLP作成時に使用します。
28checking-breaking-changes-in-php-framework
外部公開を想定したphpフレームワークのコードレビューをする際に、破壊的変更(breaking change)の有無を確認し、破壊的変更がある場合は適切に処理されているかをチェックするスキルです。
23with-codex
Enables Claude Code to collaborate with OpenAI Codex CLI on Windows. Use this skill when the user wants to get a second opinion from Codex, compare approaches between Claude and Codex, or leverage both AI assistants for collaborative problem-solving. This skill supports both non-interactive mode (automatic response retrieval) and interactive mode (visual pane splitting with tmux).
22verifying-changelog-in-framework
外部公開を想定したフレームワークにある CHANGELOG.md の内容が適切かどうかを確認するスキルです。CHANGELOG.md を更新する際、またはレビューする際に利用します。
22gh-link-subissues
GitHub Issue に Sub-issue を紐付けます。クロスリポジトリ対応。親 Issue の URL/番号と、子 Issue の URL/番号リストを指定してください。
10