feat: improve scope up and down command & parse-prd improvements

This commit is contained in:
Ralph Khreish
2025-08-03 15:07:27 +03:00
parent e0d1d03f33
commit 184bb5e68e
13 changed files with 167 additions and 43 deletions

View File

@@ -86,19 +86,23 @@ if (gitResult.status !== 0) {
console.error('Error:', gitResult.error);
console.error('Stderr:', gitResult.stderr);
console.error('Command:', `git ls-remote ${repoUrl} ${tag}`);
// For CI environments, try using origin instead of the full URL
if (process.env.CI) {
console.log('Retrying with origin remote...');
gitResult = spawnSync('git', ['ls-remote', 'origin', tag], {
encoding: 'utf8'
});
if (gitResult.status !== 0) {
throw new Error(`Failed to check remote for tag ${tag}. Exit code: ${gitResult.status}`);
throw new Error(
`Failed to check remote for tag ${tag}. Exit code: ${gitResult.status}`
);
}
} else {
throw new Error(`Failed to check remote for tag ${tag}. Exit code: ${gitResult.status}`);
throw new Error(
`Failed to check remote for tag ${tag}. Exit code: ${gitResult.status}`
);
}
}