@xcelera/cli 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.js +8 -4
- package/dist/action.js.map +1 -1
- package/dist/cli.js +10 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -9295,8 +9295,8 @@ async function getRemoteUrl() {
|
|
|
9295
9295
|
}
|
|
9296
9296
|
return remoteUrl;
|
|
9297
9297
|
}
|
|
9298
|
-
catch {
|
|
9299
|
-
throw new Error('Could not determine git remote URL. Please ensure you have an origin remote configured.');
|
|
9298
|
+
catch (error) {
|
|
9299
|
+
throw new Error('Could not determine git remote URL. Please ensure you have an origin remote configured.', { cause: error });
|
|
9300
9300
|
}
|
|
9301
9301
|
}
|
|
9302
9302
|
async function isGitRepository() {
|
|
@@ -9304,7 +9304,11 @@ async function isGitRepository() {
|
|
|
9304
9304
|
}
|
|
9305
9305
|
async function getCommit(hash = 'HEAD') {
|
|
9306
9306
|
// format: %H: commit hash, %s: subject, %an: author name, %ae: author email, %ai: author date
|
|
9307
|
-
const commit = await simpleGit().show([
|
|
9307
|
+
const commit = await simpleGit().show([
|
|
9308
|
+
hash,
|
|
9309
|
+
'--no-patch',
|
|
9310
|
+
'--format=%H|%s|%an|%ae|%ai'
|
|
9311
|
+
]);
|
|
9308
9312
|
const [resolvedHash, message, author_name, author_email, date] = commit
|
|
9309
9313
|
.trim()
|
|
9310
9314
|
.split('|');
|
|
@@ -9316,7 +9320,7 @@ async function getCommit(hash = 'HEAD') {
|
|
|
9316
9320
|
message: message,
|
|
9317
9321
|
author: author_name || 'Unknown',
|
|
9318
9322
|
email: author_email || '',
|
|
9319
|
-
date: date
|
|
9323
|
+
date: date ? new Date(date).toISOString() : new Date().toISOString()
|
|
9320
9324
|
};
|
|
9321
9325
|
}
|
|
9322
9326
|
|
|
@@ -9399,10 +9403,12 @@ try {
|
|
|
9399
9403
|
const { auditId, status, integrations } = response.data;
|
|
9400
9404
|
console.log('✅ Audit scheduled successfully!');
|
|
9401
9405
|
if (process.env.DEBUG) {
|
|
9406
|
+
console.log('');
|
|
9402
9407
|
console.log(`Audit ID: ${auditId}`);
|
|
9403
9408
|
console.log(`Status: ${status}`);
|
|
9404
9409
|
}
|
|
9405
9410
|
if (integrations && integrations.github) {
|
|
9411
|
+
console.log('');
|
|
9406
9412
|
console.log('GitHub integration detected');
|
|
9407
9413
|
const { installationId, hasRepoAccess } = integrations.github;
|
|
9408
9414
|
if (installationId && !hasRepoAccess) {
|