-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions welcomeContributions welcomepriority-3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
Describe the bug
gh repo set-default --view shows "repository required when not running interactively" message when run in a non-interactive context.
Version:
gh version 2.29.0 (2023-05-10)
https://github.com/cli/cli/releases/tag/v2.29.0
Steps to reproduce the behavior
- Run
gh repo set-default --view | cat(| catused to imitate non-interactive context) - See error:
repository required when not running interactively
Usage: gh repo set-default [<repository>] [flags]
Flags:
-u, --unset unset the current default repository
-v, --view view the current default repository
Expected vs actual behavior
I expected gh repo set-default --view to just show the repository name, same as it does in an interactive context but instead, I was informed that I need to pass the repository, even though that parameter isn't used for anything when --view flag is used.
Logs
❯ gh repo set-default --view | cat
repository required when not running interactively
Usage: gh repo set-default [<repository>] [flags]
Flags:
-u, --unset unset the current default repository
-v, --view view the current default repository
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions welcomeContributions welcomepriority-3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic