From 4178e15b0aa7bab48cfa80d490a57a82bda10822 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Tue, 23 Sep 2025 09:41:53 +0100 Subject: [PATCH] Only disable `loadPropertiesFromApi` on GHES --- src/feature-flags/properties.test.ts | 2 +- src/feature-flags/properties.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/feature-flags/properties.test.ts b/src/feature-flags/properties.test.ts index ed351cb52..dd0c72a21 100644 --- a/src/feature-flags/properties.test.ts +++ b/src/feature-flags/properties.test.ts @@ -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, diff --git a/src/feature-flags/properties.ts b/src/feature-flags/properties.ts index 8c9a94a2d..0104cddd9 100644 --- a/src/feature-flags/properties.ts +++ b/src/feature-flags/properties.ts @@ -44,7 +44,7 @@ export async function loadPropertiesFromApi( ): Promise { // 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 {}; }