add branch validation to queue
This commit is contained in:
@@ -91,6 +91,8 @@ function validateBranch() {
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
console.log('Branch validation response:', data); // Debug log
|
||||
|
||||
if (data.success) {
|
||||
// Success
|
||||
validation.className = 'branch-validation success';
|
||||
@@ -100,6 +102,14 @@ function validateBranch() {
|
||||
|
||||
validatedBranch = branchName;
|
||||
availableScenarios = data.scenarios;
|
||||
|
||||
// Log debug info
|
||||
if (data.debug) {
|
||||
console.log('Debug info:', data.debug);
|
||||
}
|
||||
if (data.output) {
|
||||
console.log('Command output:', data.output);
|
||||
}
|
||||
} else {
|
||||
// Error
|
||||
validation.className = 'branch-validation error';
|
||||
@@ -109,6 +119,15 @@ function validateBranch() {
|
||||
|
||||
validatedBranch = null;
|
||||
availableScenarios = [];
|
||||
|
||||
// Log debug info for troubleshooting
|
||||
console.error('Branch validation failed:', data.error);
|
||||
if (data.debug) {
|
||||
console.error('Debug info:', data.debug);
|
||||
}
|
||||
if (data.output) {
|
||||
console.error('Command output:', data.output);
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
||||
Reference in New Issue
Block a user