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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gbos",
3
- "version": "1.4.14",
3
+ "version": "1.4.15",
4
4
  "description": "GBOS - Command line interface for GBOS services",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -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 (this.workspace.hasRepo && this.options.createMR) {
626
+ if (hasRemote && this.options.createMR) {
624
627
  result = await this.git.commitPushAndMR(message, this.currentTask);
625
- } else if (this.workspace.hasRepo) {
628
+ } else if (hasRemote) {
626
629
  result = await this.git.commitAndPush(message, this.currentTask);
627
630
  } else {
628
- // Local-only: just commit, no push
631
+ // No remote at all: just commit locally
629
632
  result = await this.git.commitOnly(message);
630
633
  }
631
634