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
More from rcdailey/dotfiles
csharp-coding
Use when writing or modifying C# code
26gh-gist
Use when creating or updating GitHub gists for document sharing
1agents-authoring
Use when creating or updating AGENTS.md files
1gh-pr-review
Use when posting code review comments on pull requests via gh-review
1humanizer
>-
1skill-authoring
Use when creating or modifying SKILL.md files
1