Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.
/ gh-pr-draft Public archive

A GitHub CLI (gh) extension to convert a pull request to draft.

License

Notifications You must be signed in to change notification settings

kyanny/gh-pr-draft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

A GitHub CLI (gh) extension to convert a pull request to draft.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages