@bobbyg603/mog 1.0.0 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobbyg603/mog",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "One command to go from GitHub issue to pull request, powered by Claude Code in a Docker sandbox",
5
5
  "module": "src/index.ts",
6
6
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "repository": {
14
14
  "type": "git",
15
- "url": "https://github.com/workingdevshero/mog.git"
15
+ "url": "https://github.com/bobbyg603/mog.git"
16
16
  },
17
17
  "keywords": [
18
18
  "claude",
package/src/github.ts CHANGED
@@ -79,7 +79,7 @@ export function pushAndCreatePR(
79
79
 
80
80
  Closes #${issueNum}
81
81
 
82
- This PR was generated by [mog](https://github.com/workingdevshero/mog) using Claude Code in a Docker sandbox.
82
+ This PR was generated by [mog](https://github.com/bobbyg603/mog) using Claude Code in a Docker sandbox.
83
83
 
84
84
  ### Issue: ${issue.title}
85
85
 
package/src/worktree.ts CHANGED
@@ -34,7 +34,15 @@ export function ensureRepo(
34
34
  log.die("Failed to determine default branch.");
35
35
  }
36
36
 
37
- return { defaultBranch: branchProc.stdout.toString().trim() };
37
+ const defaultBranch = branchProc.stdout.toString().trim();
38
+
39
+ // Update the main repo to latest before creating worktrees
40
+ log.info(`Updating ${repoDir} (${defaultBranch})...`);
41
+ Bun.spawnSync(["git", "fetch", "origin", defaultBranch], { cwd: repoDir });
42
+ Bun.spawnSync(["git", "checkout", defaultBranch], { cwd: repoDir, stdout: "ignore", stderr: "ignore" });
43
+ Bun.spawnSync(["git", "pull", "origin", defaultBranch], { cwd: repoDir });
44
+
45
+ return { defaultBranch };
38
46
  }
39
47
 
40
48
  export function createWorktree(