diff --git a/api/controllers/v2/github.ts b/api/controllers/v2/github.ts index b94293a8e..57142ef89 100644 --- a/api/controllers/v2/github.ts +++ b/api/controllers/v2/github.ts @@ -106,7 +106,7 @@ export const TriggerBuild = async (event: APIGatewayEvent): Promise('env'); - if (process.env.MONOREPO_PATH_FEATURE === 'true') { + if (process.env.MONOREPO_PATH_FEATURE === 'true' && body.repository.name === 'docs-monorepo') { let monorepoPaths: string[] = []; try { if (body.head_commit && body.repository.owner.name) {