Set default publish action to draft if --draft option is set
This commit is contained in:
parent
06c06c87dc
commit
c7f79e8447
1 changed files with 6 additions and 0 deletions
|
|
@ -241,6 +241,11 @@ func createRun(opts *CreateOptions) error {
|
|||
opts.Body = text
|
||||
}
|
||||
|
||||
var defaultSubmit string
|
||||
if opts.Draft {
|
||||
defaultSubmit = "Save as draft"
|
||||
}
|
||||
|
||||
qs = []*survey.Question{
|
||||
{
|
||||
Name: "prerelease",
|
||||
|
|
@ -258,6 +263,7 @@ func createRun(opts *CreateOptions) error {
|
|||
"Save as draft",
|
||||
"Cancel",
|
||||
},
|
||||
Default: defaultSubmit,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue