スキル一覧に戻る
rcdailey

gh-api

by rcdailey

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: gh-api description: GitHub API calls for discussions and draft PRs (non-standard gh CLI patterns)

Draft Pull Requests

Create a draft PR

gh api --method POST repos/:owner/:repo/pulls -f title="My new feature" -f body="Description of changes" -f head="feature-branch" -f base="main" -F draft=true

For cross-repo PRs, use head="username:branch".

Get PR details (check if draft)

gh api repos/:owner/:repo/pulls/<number>

Response includes "draft": true|false and "state": "open|closed".

Check if PR is draft (minimal output)

gh api repos/:owner/:repo/pulls/<number> --jq '{draft, state, title}'

Convert draft to ready for review

gh api --method PATCH repos/:owner/:repo/pulls/<number> -F draft=false

Note: Cannot convert back to draft via API once marked ready.

List open draft PRs

gh api repos/:owner/:repo/pulls --jq '.[] | select(.draft) | {number, title}'

List my open PRs in a repo

gh api repos/:owner/:repo/pulls -f state=open --jq '.[] | select(.user.login=="USERNAME") | {number, title, draft}'

PR Conversation Comments

Comments on the PR timeline (not on specific lines of code). For inline review comments, use the gh-pr-review skill instead.

List conversation comments

gh api repos/:owner/:repo/issues/<number>/comments

Create a conversation comment

gh api --method POST repos/:owner/:repo/issues/<number>/comments -f body="Comment text"

Discussions (GraphQL)

List discussions:

gh api graphql -f query='query($owner:String!,$repo:String!) { repository(owner:$owner,name:$repo) { discussions(first:10) { nodes { number title url } } } }' -F owner=OWNER -F repo=REPO

View discussion:

gh api graphql -f query='query($owner:String!,$repo:String!,$number:Int!) { repository(owner:$owner,name:$repo) { discussion(number:$number) { title body comments(first:10) { nodes { body author { login } } } } } }' -F owner=OWNER -F repo=REPO -F number=NUM

Search discussions:

gh api graphql -f query='query($q:String!) { search(query:$q,type:DISCUSSION,first:10) { nodes { ...on Discussion { number title url } } } }' -f q="repo:OWNER/REPO QUERY"

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です