Only disable loadPropertiesFromApi on GHES

This commit is contained in:
Michael B. Gale
2025-09-23 09:41:53 +01:00
parent 205b6ba838
commit 4178e15b0a
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ test("loadPropertiesFromApi throws if response data contains unexpected objects"
);
});
test("loadPropertiesFromApi returns empty object if not on dotcom", async (t) => {
test("loadPropertiesFromApi returns empty object if on GHES", async (t) => {
sinon.stub(api, "getRepositoryProperties").resolves({
headers: {},
status: 200,

View File

@@ -44,7 +44,7 @@ export async function loadPropertiesFromApi(
): Promise<RepositoryProperties> {
// TODO: To be safe for now; later we should replace this with a version check once we know
// which version of GHES we expect this to be supported by.
if (gitHubVersion.type !== GitHubVariant.DOTCOM) {
if (gitHubVersion.type === GitHubVariant.GHES) {
return {};
}