gitdone-agent 0.2.0 → 0.2.1
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/index.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -210,7 +210,10 @@ function getSnapshot(repoPath) {
|
|
|
210
210
|
|
|
211
211
|
const diffs = parseDiffByFile(git('git diff HEAD', repoPath))
|
|
212
212
|
|
|
213
|
-
|
|
213
|
+
// Origin remote → lets the server auto-detect the GitHub repo for the History tab.
|
|
214
|
+
const remoteUrl = git('git config --get remote.origin.url', repoPath) || null
|
|
215
|
+
|
|
216
|
+
return { branch, modified, staged, aheadBy, behindBy, lastCommit, statuses, diffs, remoteUrl }
|
|
214
217
|
}
|
|
215
218
|
|
|
216
219
|
// ─── Repo discovery ─────────────────────────────────────────────────────────────
|