Skip to content

fix(#939): 修复 gitea 无法正常同步的问题#949

Merged
codexu merged 2 commits intodevfrom
fix/gitea-sync-bug
Mar 6, 2026
Merged

fix(#939): 修复 gitea 无法正常同步的问题#949
codexu merged 2 commits intodevfrom
fix/gitea-sync-bug

Conversation

@codexu
Copy link
Copy Markdown
Owner

@codexu codexu commented Mar 6, 2026

No description provided.

codexu and others added 2 commits March 6, 2026 15:26
- 添加自定义 URL 验证,空 URL 时抛出明确错误
- 自动添加 http:// 协议前缀,避免 URL 无效问题

Co-Authored-By: Claude Opus 4.6 <[email protected]>
- 修复 getGiteaApiBaseUrl 添加 URL 验证和协议自动补全
- 添加 updateFileContent 函数
- 修复 sync-button.tsx 中 gitea 上传流程(与 github/gitee 一致)
- 修复 sync-toggle.tsx 中硬编码的 gitea.com URL
- 修复 auto-sync.ts 使用正确的 Tauri fetch 和代理配置
- 优化错误处理,401 错误时抛出明确错误

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@codexu codexu merged commit 77f8d58 into dev Mar 6, 2026
@codexu codexu deleted the fix/gitea-sync-bug branch March 6, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant