abapgit-agent 1.8.7 → 1.8.8
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/package.json
CHANGED
package/src/commands/import.js
CHANGED
|
@@ -120,9 +120,15 @@ Examples:
|
|
|
120
120
|
resultData = { filesStaged: 'unknown', commitMessage: commitMessage };
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
if (resultData.success !== 'X' && resultData.success !== true) {
|
|
124
|
+
const errorMsg = resultData.error || resultData.ERROR || 'Unknown error';
|
|
125
|
+
console.log(`❌ Import failed: ${errorMsg}`);
|
|
126
|
+
process.exit(1);
|
|
127
|
+
}
|
|
128
|
+
|
|
123
129
|
console.log(`✅ Import completed successfully!`);
|
|
124
|
-
console.log(` Files staged: ${resultData.filesStaged || resultData.FILES_STAGED || 'unknown'}`);
|
|
125
|
-
console.log(` Commit: ${resultData.commitMessage || resultData.COMMIT_MESSAGE || commitMessage || 'Initial import'}`);
|
|
130
|
+
console.log(` Files staged: ${resultData.filesStaged || resultData.FILES_STAGED || resultData.files_staged || 'unknown'}`);
|
|
131
|
+
console.log(` Commit: ${resultData.commitMessage || resultData.COMMIT_MESSAGE || resultData.commit_message || commitMessage || 'Initial import'}`);
|
|
126
132
|
console.log(``);
|
|
127
133
|
|
|
128
134
|
// Calculate time spent
|
|
@@ -58,7 +58,7 @@ async function pollForCompletion(http, endpoint, jobNumber, options = {}) {
|
|
|
58
58
|
let lastProgress = -1;
|
|
59
59
|
let pollCount = 0;
|
|
60
60
|
|
|
61
|
-
while (status === 'running' || status === 'scheduled') {
|
|
61
|
+
while (status === 'running' || status === 'scheduled' || status === 'STARTING') {
|
|
62
62
|
// Wait before polling (except first time)
|
|
63
63
|
if (pollCount > 0) {
|
|
64
64
|
await sleep(pollInterval);
|