Skip to content

Selectively display visibility options during repo create #2106

@ShubhankarKG

Description

@ShubhankarKG

Describe the feature or problem you’d like to solve

As a primitive user who is new to visibilities, during gh repo create, he/she is given the option of an INTERNAL visibility, available only to Enterprise accounts. It may not be appropriate to show this visibility to someone who isn't at all associated with an Enterprise account.

Proposed solution

If we can somehow know whether the current user is associated with an Enterprise org or not, we can show the Internal visibility selectively.

How will it benefit CLI and its users?

For someone who is not at all associated with enterprise orgs, it is trivial to show a visibility that he/she cannot use.

Additional context

Originally posted by @samcoe in #2101 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-reporelating to the gh repo commandpriority-2Affects more than a few users but doesn't prevent core functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions