gbos 1.4.14 → 1.4.15
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
|
@@ -619,13 +619,16 @@ class Orchestrator extends EventEmitter {
|
|
|
619
619
|
|
|
620
620
|
const message = `Complete task: ${this.currentTask.title || this.currentTask.task_key || this.currentTask.id}`;
|
|
621
621
|
|
|
622
|
+
// Check if working directory has a git remote (even if app has no repo URL configured)
|
|
623
|
+
const hasRemote = this.workspace.hasRepo || !!(await this.git.getRemoteUrl());
|
|
624
|
+
|
|
622
625
|
let result;
|
|
623
|
-
if (
|
|
626
|
+
if (hasRemote && this.options.createMR) {
|
|
624
627
|
result = await this.git.commitPushAndMR(message, this.currentTask);
|
|
625
|
-
} else if (
|
|
628
|
+
} else if (hasRemote) {
|
|
626
629
|
result = await this.git.commitAndPush(message, this.currentTask);
|
|
627
630
|
} else {
|
|
628
|
-
//
|
|
631
|
+
// No remote at all: just commit locally
|
|
629
632
|
result = await this.git.commitOnly(message);
|
|
630
633
|
}
|
|
631
634
|
|