5 Commits

Author SHA1 Message Date
wonder a6bd46db34 feat: support private repo cloning with HTTP basic auth
Deploy PR-Helper / deploy (push) Successful in 30s
- Add SSH URL detection with friendly prompt to use HTTPS instead
- Add private repo toggle (default off) with username/password fields
- Persist auth_type and credential in repositories table
- Pass stored credentials to PullRepo for authenticated pulls
- Incremental migration adds auth_type and credential columns
2026-06-21 14:58:12 +08:00
wonder 20be99b287 feat: add git pull to update cached repositories from remote
Deploy PR-Helper / deploy (push) Successful in 34s
- Replace dead FetchRemote with PullRepo (fetch + merge) in services/git.go
- Add POST /api/repos/:id/pull endpoint with DB size/last_used update
- Add '更新' button next to each cached repo in the index page
2026-06-21 14:31:33 +08:00
wonder 46778bc227 refactor: 移除 services/git.go 中的无用代码 2026-06-20 00:06:03 +08:00
wonder 1f2cc662ea fix: 移除 Clone() 中过早触发的 SSE complete 事件 2026-06-18 23:22:41 +08:00
wonder 34ef868e10 feat: Phase 2 — Git 核心功能,go-git 克隆、SSE 进度、D3.js 图形、diff2html 查看器 2026-06-18 22:59:51 +08:00