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.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. 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
- return { branch, modified, staged, aheadBy, behindBy, lastCommit, statuses, diffs }
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 ─────────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitdone-agent",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Local git agent for gitdone — watches a local repo and sends snapshots to gitdone.eu",
5
5
  "type": "module",
6
6
  "bin": {