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;