MCPcopy Index your code
hub / github.com/github/spec-kit / github_provider_hosts

Function github_provider_hosts

src/specify_cli/authentication/http.py:121–132  ·  view source on GitHub ↗

Return host patterns from every ``github`` provider entry in ``auth.json``. Used to classify which hosts are GitHub Enterprise Server instances when resolving release-asset download URLs. Returns an empty tuple when no ``auth.json`` exists or it contains no ``github`` entries.

()

Source from the content-addressed store, hash-verified

119
120
121def github_provider_hosts() -> tuple[str, ...]:
122 """Return host patterns from every ``github`` provider entry in ``auth.json``.
123
124 Used to classify which hosts are GitHub Enterprise Server instances when
125 resolving release-asset download URLs. Returns an empty tuple when no
126 ``auth.json`` exists or it contains no ``github`` entries.
127 """
128 hosts: list[str] = []
129 for entry in _load_config():
130 if entry.provider == "github":
131 hosts.extend(entry.hosts)
132 return tuple(hosts)
133
134
135def open_url(

Calls 1

_load_configFunction · 0.85