From 9a07449e8f94e5615d483e10d1bcfee4b8bf29c7 Mon Sep 17 00:00:00 2001 From: Yogendra Shelke Date: Wed, 25 Feb 2026 15:54:42 +0530 Subject: [PATCH] feat: enhance cloneRepo function to accept branch name parameter --- scripts/release/build-mpk.ts | 2 +- scripts/release/module-automation/commons.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release/build-mpk.ts b/scripts/release/build-mpk.ts index 37c013f62..cd315fa66 100644 --- a/scripts/release/build-mpk.ts +++ b/scripts/release/build-mpk.ts @@ -181,7 +181,7 @@ async function updateNativeComponentsTestProject( log(`Updating NativeComponentsTestProject (repo=${moduleInfo.testProjectUrl ?? ""})...`); log(`JS actions dist path: ${jsActionsPath}`); log(`JS actions files found: ${jsActions.length}`); - await cloneRepo(moduleInfo.testProjectUrl, tmpFolder); + await cloneRepo(moduleInfo.testProjectUrl, tmpFolder, moduleInfo.testProjectBranchName); log(`Deleting existing JS Actions from test project: ${tmpFolderActions}`); await rm(tmpFolderActions, { force: true, recursive: true }); // this is useful to avoid retaining stale dependencies in the test project. diff --git a/scripts/release/module-automation/commons.d.ts b/scripts/release/module-automation/commons.d.ts index 24bed53ac..c7df0b02e 100644 --- a/scripts/release/module-automation/commons.d.ts +++ b/scripts/release/module-automation/commons.d.ts @@ -8,7 +8,7 @@ export function getFiles(folder: string, extensions?: string[]): Promise; -export function cloneRepo(githubUrl: string, localFolder: string): Promise; +export function cloneRepo(githubUrl: string, localFolder: string, branchName?: string): Promise; export function createMPK(tmpFolder: string, moduleInfo: any, excludeFilesRegExp: RegExp): Promise;