From 07c720224db2fb2bb401c1e47ce04dd2271f9553 Mon Sep 17 00:00:00 2001 From: dsinghvi Date: Sun, 5 May 2024 22:34:00 -0400 Subject: [PATCH] only run checks on verified domains --- .github/workflows/healthcheck.yml | 2 +- fern/apis/vercel/definition/v9/domains.yml | 1 + packages/healthchecks/package.json | 2 +- packages/healthchecks/src/getDocsURLs.ts | 5 ++++- pnpm-lock.yaml | 8 ++++---- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/healthcheck.yml b/.github/workflows/healthcheck.yml index 01587324f4..f73618fc7e 100644 --- a/.github/workflows/healthcheck.yml +++ b/.github/workflows/healthcheck.yml @@ -30,6 +30,6 @@ jobs: pnpm turbo compile pnpm --filter=@fern-api/healthchecks dist:cli - - name: Run Healthchecks + - name: Run HealthchecksY run: | node packages/healthchecks/dist/cli.cjs docs run diff --git a/fern/apis/vercel/definition/v9/domains.yml b/fern/apis/vercel/definition/v9/domains.yml index 580d637d70..e0e5227409 100644 --- a/fern/apis/vercel/definition/v9/domains.yml +++ b/fern/apis/vercel/definition/v9/domains.yml @@ -6,6 +6,7 @@ types: Domain: properties: name: string + verified: boolean service: base-path: /v9/projects/{projectId}/domains diff --git a/packages/healthchecks/package.json b/packages/healthchecks/package.json index 77494b33fa..39aec5944f 100644 --- a/packages/healthchecks/package.json +++ b/packages/healthchecks/package.json @@ -34,7 +34,7 @@ "devDependencies": { "@fern-api/fdr-sdk": "workspace:*", "@fern-ui/fdr-utils": "workspace:*", - "@fern-fern/vercel": "0.0.1", + "@fern-fern/vercel": "0.0.2", "@types/jest": "^29.5.11", "@types/node": "^18.7.18", "@types/yargs": "^17.0.32", diff --git a/packages/healthchecks/src/getDocsURLs.ts b/packages/healthchecks/src/getDocsURLs.ts index b7b7188818..2f824e7e25 100644 --- a/packages/healthchecks/src/getDocsURLs.ts +++ b/packages/healthchecks/src/getDocsURLs.ts @@ -19,5 +19,8 @@ export async function getAllFernDocsWebsites(): Promise { limit: "100", teamId: "team_6FKOM5nw037hv8g2mTk3gaH7", }); - return [...CUSTOM_SUBPATHS, ...listDomainsResponse.domains.map((customDomain) => customDomain.name)]; + const verifiedDomains = listDomainsResponse.domains + .filter((customDomain) => customDomain.verified) + .map((customDomain) => customDomain.name); + return [...CUSTOM_SUBPATHS, ...verifiedDomains]; } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e58aeedd7d..0421d488bb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -640,8 +640,8 @@ importers: specifier: workspace:* version: link:../fdr-sdk '@fern-fern/vercel': - specifier: 0.0.1 - version: 0.0.1 + specifier: 0.0.2 + version: 0.0.2 '@fern-ui/fdr-utils': specifier: workspace:* version: link:../commons/fdr-utils @@ -5315,8 +5315,8 @@ packages: - encoding dev: false - /@fern-fern/vercel@0.0.1: - resolution: {integrity: sha512-FWWaxjgBR6WzPmzbScGvXLBDvjMGC0xYK3AVG1KAZz9XMbTVdmH+jloXjDofpq+95gRkK1Y7kgvYpU7TJHUwwQ==} + /@fern-fern/vercel@0.0.2: + resolution: {integrity: sha512-FOQ+8fhRA89AoC4sSWDeRL5y3Yijk9DTLu+scURMqT4F153wbndctgXtzqQO3H/SEXx1dblydt1Zt6WUrFH25Q==} dependencies: form-data: 4.0.0 js-base64: 3.7.2