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
735126ff56
fix: escape 'key' as reserved word in all MySQL queries with backticks
2026-06-20 23:21:24 +08:00
wonder
6c60b767df
refactor: replace chromedp with browser native print for PDF export
...
Remove chromedp dependency, use window.print() instead. Docker image no longer needs Chromium (~200MB smaller).
- Delete services/pdf.go and templates/reports/review.html
- Remove PDF API route POST /api/repos/:id/review/pdf
- Add @media print CSS to review page
- Remove chromium from Dockerfile
2026-06-20 22:26:46 +08:00
wonder
37aa9c0a33
fix: 结构化渲染审查总结,替换原始JSON显示
...
- 后端发送结构化数据(score/overall/findings/recommendations)而非格式化文本
- 增加灵活JSON解析,兼容LLM返回recommendations为数组的情况
- 前端渲染带样式的审查总结:评分徽章(颜色分级)、分区展示
- 两个页面统一处理:repo页面的内联审查和review页面的完整审查
2026-06-20 22:15:00 +08:00
wonder
292588ef23
feat: 将默认 LLM 配置从 OpenAI 切换为 DeepSeek (deepseek-v4-pro)
2026-06-20 22:03:09 +08:00
wonder
9c843b79ba
feat: 添加用户注册登录功能,实现数据和配置的用户隔离
...
- 新增 users 和 user_settings 表,repositories/analyses/review_notes 添加 user_id 列
- 实现基于邮箱+密码的注册登录,密码使用 bcrypt 哈希
- 使用 gin-contrib/sessions cookie-based session 管理
- 所有仓库、分析记录、review notes 按用户隔离
- 用户设置(LLM 配置、review 参数、缓存配置)独立存储
- 新增登录/注册页面,导航栏显示用户邮箱和退出按钮
- 前端 fetch 请求统一添加 credentials: 'same-origin'
- 支持 SESSION_SECRET 环境变量配置会话密钥
2026-06-20 21:57:46 +08:00
wonder
46778bc227
refactor: 移除 services/git.go 中的无用代码
2026-06-20 00:06:03 +08:00
wonder
a66074e49c
feat: 并发文件审查,可配置并行度
2026-06-19 23:40:13 +08:00
wonder
0528eee4de
feat: 持久化 AI 审查结果,文件级内联展示与页面集成
2026-06-19 23:24:06 +08:00
wonder
a89d057716
fix: 使用正确的 SSE 事件名 'start' 展示审查进度
2026-06-19 23:05:01 +08:00
wonder
b35d6f874b
feat: Phase 5 — 审查备注编辑器与 PDF 导出
2026-06-19 22:10:13 +08:00
wonder
afb270721c
feat: Phase 4 — LLM 集成,PR 描述生成与 AI 代码审查
2026-06-19 19:43:18 +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