-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
enhancementa request to improve CLIa request to improve CLIhelp wantedContributions welcomeContributions welcome
Description
Describe the bug
When creating a gist with gh gist create, if you do not specify a filename the output of the command does not indicate if it is a public or secret gist.
$ gh --version
gh version 2.31.0 (2023-06-20)
https://github.com/cli/cli/releases/tag/v2.31.0
$ echo foo | gh gist create
- Creating gist...
✓ Created gist
https://gist.github.com/seanbright/...
$ echo foo | gh gist create --public
- Creating gist...
✓ Created gist
https://gist.github.com/seanbright/...
$ echo foo | gh gist create --filename foo.txt
- Creating gist foo.txt
✓ Created secret gist foo.txt
https://gist.github.com/seanbright/...
$ echo foo | gh gist create --filename foo.txt --public
- Creating gist foo.txt
✓ Created public gist foo.txt
https://gist.github.com/seanbright/...
Note that only the last 2 where --filename was provided are showing secret and public in the output.
Steps to reproduce the behavior
- Type
$ echo foo | gh gist create --publicand note that the output does not showpublic - Type
$ echo foo | gh gist create --public --filename foo.txtand note that the output does showpublic
Expected vs actual behavior
I expect the privacy status to appear in the output unconditionally.
Logs
See above.
Metadata
Metadata
Assignees
Labels
enhancementa request to improve CLIa request to improve CLIhelp wantedContributions welcomeContributions welcome