-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingcoreThis issue is not accepting PRs from outside contributorsThis issue is not accepting PRs from outside contributorsgh-variablerelating to the gh variable commandrelating to the gh variable commandp3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
Describe the bug
I think this is the same bug as #8679
The TL;DR is that gh variable list does not correctly handle --json numSelectedRepos when in a non-interactive session. This is because we only fetch the selected repos if we're hooked up to TTY which was correct when the command was introduced but not when --json became supported
Steps to reproduce the behavior
- Create an organization secret
- Set it's visibility to "Selected" and choose a repo
- Run
gh variable list -o <org> --json numSelectedReposand see the value = 1 - Run
gh variable list -o <org> --json numSelectedRepos | catand see the value = 1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcoreThis issue is not accepting PRs from outside contributorsThis issue is not accepting PRs from outside contributorsgh-variablerelating to the gh variable commandrelating to the gh variable commandp3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic