You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Configurable default PR state for submit, covering --auto #645
gh stack submit --auto creates new PRs as drafts unless --open is passed. The default is fixed in createPR (isDraft := !opts.open), and no git config key, environment variable or gh config changes it.
--auto is the path coding agents use, and the bundled skill teaches it as the core loop:
gh stack submit --auto # push every branch and open draft PRs
An agent following the skill opens every stack as drafts. A user who wants ready PRs has to repeat "pass --open" in their own agent instructions, against the skill's example, and mark the stack ready by hand when the agent misses it.
The interactive editor has the opposite default: new PRs start ready for review. So the same command opens drafts or ready PRs depending on whether stdout is a TTY.
Proposal
A git config key for the default state of new PRs, read by submit in both modes:
git config --global stack.submit.draft false # new PRs ready for review
git config --global stack.submit.draft true # new PRs as drafts
--auto without --open uses the key; with the key unset it keeps today's draft default.
The interactive editor starts each new PR's draft toggle from the key; with the key unset it keeps today's ready default.
--open still wins for the run. A --draft flag would complete the pair, so a run can override the key the other way.
This also covers #271, which asks for the inverse default in the interactive editor.
Alternative
Make --auto create ready PRs, matching the editor, and keep --draft as the opt-in. That is a behaviour change for existing --auto users, so the config key is the smaller step.
Activity