Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow reuse of host checks for extension authors #152

Merged
merged 6 commits into from
Apr 29, 2024

Commits on Mar 8, 2024

  1. Allow reuse of host checks for extension authors

    Following on the heels of #151, this commit exports the internal logic used to
    determine if a host is GHES deployment or a tenant.
    
    Exporting these functions allow extension authors like `github/gh-copilot` to
    provide tailored experiences consistently with `gh`.
    andyfeller committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    6e9fb7c View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. Normalize hostname checking for tenancy or enterprise

    This aligns the `cli/cli` behavior of IsTenancy and IsEnterprise with the counterparts here.
    andyfeller committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    7b29c8e View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Configuration menu
    Copy the full SHA
    8d04841 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

  1. Configuration menu
    Copy the full SHA
    29dc50b View commit details
    Browse the repository at this point in the history
  2. Expand tenancy test cases

    Including API cases for tenancy checks, ensuring that hosts are normalized.
    andyfeller committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    9afca84 View commit details
    Browse the repository at this point in the history
  3. Expand IsEnterprise test cases

    Adding API hosts to TestIsEnterprise to ensure that normalized hosts work as expected.
    andyfeller committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    8a3c02a View commit details
    Browse the repository at this point in the history