gh-dash/Q/Does gh-dash have a keyshort like W ready for review which is the inverse (mark as draft)?
Properties
- logseq-entity
- Logseq/Entity/Question
- see-also
- gh-dash/Wishlist
Does gh-dash have a Keyshort like
Wready for review which is the inverse (mark as draft)?AI Answer
- Short answer: No. There is a built-in
W/builtin: readythat runsgh pr ready, but no inverse key or builtin that converts a PR back to draft. What exists
- Default binding:
W→ help text"ready for review"(PRKeys.Readyininternal/tui/keys/prKeys.go). - Rebindable only as
builtin: ready— the PR builtin list hasready, not draft/undo. - Under the hood,
tasks.PRReadyshells out togh pr ready <n> -R <repo>with no--undo. - Official docs document only
W— Mark PR as Ready for Review, which converts draft → ready.
- Default binding:
Workaround: custom keybinding
gh pr readyaccepts--undoto convert a ready PR back to draft (plan-dependent). Bind that yourself underkeybindings.prs:- yaml
keybindings: prs: - key: D name: convert to draft command: gh pr ready --undo --repo {{.RepoName}} {{.PrNumber}} - Pick any free key (
Dis only an example — lowercasedis alreadydiff). Keep--repo {{.RepoName}}so it works when the dashboard is not launched from that checkout. - After the custom command, refresh (
r/R) if the draft icon does not update immediately — unlike the built-inreadypath, a custom command does not pushReadyForReviewinto the in-memory PR row.
- Answer/Official from Selected PR keybindings and Custom Keybindings — PR builtins (builtins list includes
ready, not draft); undo viagh pr ready --undo.
- Short answer: No. There is a built-in