From bb47d6043f7eb358048d64179ec08bd9dd098655 Mon Sep 17 00:00:00 2001 From: anabellabuckvar <41971124+anabellabuckvar@users.noreply.github.com> Date: Sat, 16 Mar 2024 15:50:11 -0400 Subject: [PATCH] DOP-4414 testing job prefix --- api/controllers/v2/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/v2/github.ts b/api/controllers/v2/github.ts index 72f1709be..b8c4de4d7 100644 --- a/api/controllers/v2/github.ts +++ b/api/controllers/v2/github.ts @@ -196,7 +196,6 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr for (const s in SMOKETEST_SITES) { names = names + s; const repoName = SMOKETEST_SITES[s]; - if (repoName == 'docs') return true; const jobTitle = 'Smoke Test ' + repoName; let repoInfo, projectEntry, repoOwner; @@ -204,6 +203,7 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr repoInfo = await docsetsRepository.getRepo(repoName); projectEntry = await projectsRepository.getProjectEntry(repoInfo.project); repoOwner = projectEntry.github.organization; + if (repoName == 'docs') return true; } catch { return ( 'repoInfo, projectEntry, or repoOwner not found. Repo info: ' +