Skip to content

Commit

Permalink
DOP-4414 testing lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Mar 13, 2024
1 parent d895253 commit b1c8c27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async function createPayload(
let isFork = false;
let url;
let newHead;

return repoOwner;
if (isSmokeTestDeploy) {
try {
if (repoOwner == null) {
Expand Down Expand Up @@ -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);
Expand All @@ -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 {
Expand Down

0 comments on commit b1c8c27

Please sign in to comment.