diff --git a/src/MwCheckout.js b/src/MwCheckout.js index 959f8b9..c5ad689 100644 --- a/src/MwCheckout.js +++ b/src/MwCheckout.js @@ -63,8 +63,9 @@ class MwCheckout { * `origin/main`, respectively. * @param {string[]} changeIds An array of Gerrit Change-Ids * @param {Object.} repoBranches + * @param {string} group */ - async checkout( branch, changeIds, repoBranches = {} ) { + async checkout( branch, changeIds, repoBranches = {}, group = '' ) { if ( branch === 'master' || branch === 'main' ) { branch = `origin/${branch}`; } @@ -93,8 +94,7 @@ class MwCheckout { await this.#updateSubmodules( path ); await this.#updateComposer( path ); - - if ( repoId === 'design/codex' ) { + if ( group === 'codex' && repoId === 'design/codex' ) { // Build the Codex sandbox and its dependencies await this.#simpleSpawn.spawn( ` diff --git a/src/main.js b/src/main.js index af5cb77..eb113cb 100755 --- a/src/main.js +++ b/src/main.js @@ -16,7 +16,7 @@ async function init() { benchmark( async () => { const simpleSpawn = new SimpleSpawn(); const mwCheckout = new MwCheckout( repos, simpleSpawn ); - await mwCheckout.checkout( opts.branch, opts.changeId ?? [], repoBranches ); + await mwCheckout.checkout( opts.branch, opts.changeId ?? [], repoBranches, opts.group ); } ); }