gh-pr-draft
gh-pr-draft copied to clipboard
A GitHub CLI (gh) extension to convert a pull request to draft.
Update on September 22, 2022
Since v2.16.0, GitHub CLI officially supports making a pull request draft.
gh pr ready 123 --undo
While the command syntax is different, it would be better using the builtin function, so I archive this repository.
gh pr-draft GitHub CLI extension
Converts a pull request to draft.
Installation
gh extension install kyanny/gh-pr-draft
Usage
With a pull request number:
gh pr-draft 1234
Without a pull request number:
gh pr checkout 1234
gh pr-draft
To convert your pull request ready for review, you can use gh pr ready.
Motivation
There is was a feature request for the GitHub CLI but I can't couldn't wait it so that I created this script as a GitHub CLI extension.