Skip to content

Commit

Permalink
DOP-4414 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Mar 19, 2024
1 parent c86c466 commit c4ac837
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr
' completed successfully but only Deploy Staging ECS workflow completion will trigger smoke test site deployments',
};

// // if the build was not building master, no need for smoke test sites
// // if the build was not building main branch, no need for smoke test sites
// if (body.workflow_run.head_branch != 'main' || body.repository.fork) {
// console.log('Build was not on master branch in main repo, sites will not deploy as no smoke tests are needed');
// return {
Expand All @@ -196,6 +196,7 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr
let repoInfo, projectEntry, repoOwner;
try {
repoInfo = await docsetsRepository.getRepo(repoName);
return repoName + repoInfo;
projectEntry = await projectsRepository.getProjectEntry(repoInfo.project);
repoOwner = projectEntry.github.organization;
} catch {
Expand Down

0 comments on commit c4ac837

Please sign in to comment.