gh
2
总安装量
2
周安装量
#67535
全站排名
安装命令
npx skills add https://github.com/myuon/agent-skills --skill gh
Agent 安装分布
cursor
2
claude-code
2
github-copilot
2
codex
2
mcpjam
1
iflow-cli
1
Skill 文档
gh: GitHub CLI ãªãã¡ã¬ã³ã¹
GitHub Issuesã»PRã»CI ã CLI ããæä½ããããã®ã¯ã¤ãã¯ãªãã¡ã¬ã³ã¹ã
Issue ã®ä½æ
gh issue create --title "ã¿ã¤ãã«" --body "æ¬æ"
# ã©ãã«ä»ã
gh issue create --title "ã¿ã¤ãã«" --body "æ¬æ" --label "bug"
# è¤æ°è¡ã®æ¬æï¼HEREDOCï¼
gh issue create --title "ã¿ã¤ãã«" --body "$(cat <<'EOF'
## æ¦è¦
説æ
## åãå
¥ãæ¡ä»¶
- [ ] æ¡ä»¶1
- [ ] æ¡ä»¶2
EOF
)"
Issue ã®ç¢ºèª
# Issue ã®è©³ç´°ã表示
gh issue view <number>
# Web ãã©ã¦ã¶ã§éã
gh issue view <number> --web
Issue ã®ä¸è¦§ã»æ¤ç´¢
# ãªã¼ãã³ãª Issue ä¸è¦§
gh issue list
# ç¶æ
ãæå®
gh issue list --state closed
gh issue list --state all
# ã©ãã«ã§çµãè¾¼ã¿
gh issue list --label "bug"
# èªåã«ã¢ãµã¤ã³ããã Issue
gh issue list --assignee @me
# ãã¼ã¯ã¼ãæ¤ç´¢
gh issue list --search "ãã¼ã¯ã¼ã"
# è¤åæ¤ç´¢
gh issue list --search "label:bug sort:updated-desc"
Sub-issue ã®ä½æ
gh-sub-issue æ¡å¼µã使ç¨ããã
# ã¤ã³ã¿ã©ã¯ãã£ãã¢ã¼ã
gh sub-issue create <parent-number>
# ã¿ã¤ãã«æå®
gh sub-issue create <parent-number> --title "ãµãã¿ã¹ã¯ã®ã¿ã¤ãã«"
# ã¿ã¤ãã« + æ¬æ
gh sub-issue create <parent-number> --title "ã¿ã¤ãã«" --body "詳細"
# URL ã§è¦ª Issue ãæå®
gh sub-issue create https://github.com/owner/repo/issues/10 --title "ã¿ã¤ãã«"
# å¥ãªãã¸ããª
gh sub-issue create <parent-number> --repo owner/other-repo
# ä¸è¦§
gh sub-issue list <parent-number>
gh-sub-issue ã®ã¤ã³ã¹ãã¼ã«
æªã¤ã³ã¹ãã¼ã«ã®å ´å:
gh extension install yahsan2/gh-sub-issue
PR ã®ä½æ
gh pr create --title "ã¿ã¤ãã«" --body "$(cat <<'EOF'
## Summary
- 夿´å
容
Closes #<issue-number>
EOF
)"
# draft PR
gh pr create --title "ã¿ã¤ãã«" --body "..." --draft
Closes #<number> ãæ¬æã«å«ããã¨ãã¼ã¸æã« Issue ãèªåã¯ãã¼ãºãããã
CI ã®ç¢ºèª
# CI ã®ã¹ãã¼ã¿ã¹ã確èª
gh pr checks <pr-number>
pass ããã¾ã§ watch
gh pr checks <pr-number> --watch --fail-fast
失ææã®ãã°ç¢ºèª
gh run list
gh run view <run-id> --log
PR ã¸ã®ã³ã¡ã³ã
gh pr comment <pr-number> --body "ã³ã¡ã³ãå
容"
PR ã®ãã¼ã¸
# merge commitï¼æ¨å¥¨ï¼
gh pr merge <pr-number> --merge --delete-branch
# squash merge
gh pr merge <pr-number> --squash --delete-branch