From b1c8c27678bbb399e8908f6f37f4bd7b656da585 Mon Sep 17 00:00:00 2001 From: anabellabuckvar <41971124+anabellabuckvar@users.noreply.github.com> Date: Wed, 13 Mar 2024 10:24:38 -0400 Subject: [PATCH] DOP-4414 testing lambda --- api/controllers/v2/github.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/controllers/v2/github.ts b/api/controllers/v2/github.ts index 3093cdf27..1b3463a64 100644 --- a/api/controllers/v2/github.ts +++ b/api/controllers/v2/github.ts @@ -66,7 +66,7 @@ async function createPayload( let isFork = false; let url; let newHead; - + return repoOwner; if (isSmokeTestDeploy) { try { if (repoOwner == null) { @@ -198,9 +198,9 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr const jobPrefix = repoInfo?.prefix ? repoInfo['prefix'][env] : ''; // const ammendedJobPrefix = body.after ? jobPrefix + body.after : jobPrefix; // const prefix = ammendedJobPrefix; - return true; const payload = await createPayload(repoName, true, jobPrefix, repoBranchesRepository, repoInfo, repoOwner); + return payload; //add logic for getting master branch, latest stable branch const job = await prepGithubPushPayload(body, payload, jobTitle); deployable.push(job); @@ -226,7 +226,7 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr return { statusCode: 202, headers: { 'Content-Type': 'text/plain' }, - body: 'Jobs Queued 3' + projectEntry, + body: 'Jobs Queued 1' + projectEntry, }; } catch (err) { return {