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 622f914 commit 65572bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ async function prepGithubPushPayload(
payload: any,
title: string
): Promise<Omit<EnhancedJob, '_id'> | string> {
return 'here' + JSON.stringify(githubEvent);
return {
title: title,
user: githubEvent.pusher.name,
email: githubEvent.pusher.email ?? '',
user: githubEvent.sender.login,
// email: githubEvent.pusher.email ?? '',
email: '',
status: JobStatus.inQueue,
createdTime: new Date(),
startTime: null,
Expand Down Expand Up @@ -170,6 +170,7 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr
}

// //if the build was not building master, no need for smoke test sites
//check that fork is false
// if (body.ref.split('/')[2] != 'main') {
// console.log('Build was not on master branch, sites will not deploy as no smoke tests are needed');
// return {
Expand Down

0 comments on commit 65572bb

Please sign in to comment.