Hey when I `gt submit` : - I never want the "keep ...
# how-do-i
z
Hey when I
gt submit
: • I never want the "keep as draft"/"publish" dialog - please don't ask me to click! Make it a draft please! • after clicking "keep as draft" please don't ask me to click "go to top of stack" or "go to inbox" - I don't know who dreamed this up, but if I wanted to go to my inbox I can easily do that Dialog after dialog feels like a hellscape to me. I don't want to click once let alone twice! I'm sure you'll tell me there's a
gt submit
option to just submit as draft that avoids this (there better be!) but the default webapp behavior definitely should not be this!
p
(If applicable) To help us more clearly understand what you're trying to do, please provide additional details about: - Screenshots / debug logs / list of commands you've tried to run so far - Your workflow - Current state
z
gt submit --help
does not indicate any ways around this FYI
Also
gt submit
documents
-v --view
as:
Copy code
-v, --view                      Open the PR in your browser after submitting.     [boolean] [default: false]
...but mine always opens my browser, so
default: false
seems wrong to me. Am I missing something?
j
gt config is your friend
z
@Joan La Rosa what gt config setting is relevant here? "Submit settings" does not seem to configure this exactly. Thank you in advance for any help!
p
hey Zach, apologies for the arduous experience there. You can indeed submit as a draft with an option,
-d
! If you want to skip the web browser submit you can use the
--no-interactive
option. (I believe the
gt config
Joan is mentioning is the in "Submit settings" to enable setting PR metadata in the CLI rather than the web browser.)
šŸ‘ 1
z
Thank you! I'll try
gt submit -d --no-interactive
. I think that's what I usually want.
Sorry for the over-the-top presentation! Trying to give useful feedback but I sound deranged thanks for bearing with me! šŸ˜…
When you do
gt submit -d --no-interactive
, you get a nice little link
Copy code
Edit your stack at <https://app.graphite.dev/submit/><org>/<repo>/<pr#>
and when you click that cursed link it triggers the double dialog! It's waiting and I'm afraid there's no way to avoid it.
Also
gt submit -d --no- <TAB>
does not autocomplete to
--no-interactive
. This option is not just absent from
gt submit --help
, but is not known to your autocomplete. I wish gt was better documented
p
ah
--no-interactive
is a global option not a command specific one. You can print all the commands and options via
gt help --all
šŸ‘ 1