gh-api

Installation
SKILL.md

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)

Related skills
Installs
1
GitHub Stars
1
First Seen
Mar 29, 2026