Skip to content

Commit

Permalink
DOP-4414 push to preprd
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Mar 14, 2024
1 parent 49e106a commit 33c1d31
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import { MONOREPO_NAME } from '../../../src/monorepo/utils/monorepo-constants';
const SMOKETEST_SITES = [
'docs-landing',
'cloud-docs',
// 'docs-realm',
// 'docs',
'docs-realm',
'docs',
// 'docs-atlas-cli',
// 'docs-ecosystem',
// 'docs-node',
Expand All @@ -30,7 +30,7 @@ async function prepGithubPushPayload(
githubEvent: PushEvent | WorkflowRunCompletedEvent,
payload: any,
title: string
): Promise<Omit<EnhancedJob, '_id'> | string> {
): Promise<Omit<EnhancedJob, '_id'>> {
return {
title: title,
user: githubEvent.sender.login,
Expand Down Expand Up @@ -214,7 +214,7 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr
//add logic for getting master branch, latest stable branch
const job = await prepGithubPushPayload(body, payload, jobTitle);
deployable.push(job);
names = names + s;
names = names + repoName;
}
return names;

Expand Down Expand Up @@ -305,7 +305,7 @@ export const TriggerBuild = async (event: APIGatewayEvent): Promise<APIGatewayPr
const jobPrefix = repoInfo?.prefix ? repoInfo['prefix'][env] : '';
const jobTitle = repo.full_name;

const payload = createPayload(repo.name, false, jobPrefix, repoBranchesRepository, repoInfo, body);
const payload = createPayload(repo.name, false, jobPrefix, repoBranchesRepository, repoInfo, undefined, body);
const job = await prepGithubPushPayload(body, payload, jobTitle);

consoleLogger.info(job.title, 'Creating Job');
Expand Down

0 comments on commit 33c1d31

Please sign in to comment.