From 2650e8f52787b18daf37219244345474029ab901 Mon Sep 17 00:00:00 2001 From: Matt Meigs Date: Thu, 7 Dec 2023 11:49:22 -0500 Subject: [PATCH] log out trigger build --- api/controllers/v2/github.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/api/controllers/v2/github.ts b/api/controllers/v2/github.ts index ccb205f6e..f9ae515e6 100644 --- a/api/controllers/v2/github.ts +++ b/api/controllers/v2/github.ts @@ -18,7 +18,8 @@ async function prepGithubPushPayload( githubEvent: PushEvent, repoBranchesRepository: RepoBranchesRepository, prefix: string, - repoInfo: ReposBranchesDocsetsDocument + repoInfo: ReposBranchesDocsetsDocument, + directory?: string ): Promise> { const branch_name = githubEvent.ref.split('/')[2]; const branch_info = await repoBranchesRepository.getRepoBranchAliases( @@ -53,6 +54,7 @@ async function prepGithubPushPayload( urlSlug: urlSlug, prefix: prefix, project: project, + directory: directory, }, logs: [], }; @@ -110,7 +112,8 @@ export const TriggerBuild = async (event: APIGatewayEvent): Promise 1) continue;