Conversation
- 添加自定义 URL 验证:移除末尾斜杠、确保包含协议 - 添加 Access Token 验证 - 修复路径编码问题:避免双重编码 - 改进 getFiles 错误处理:区分 404 和其他错误 - 顺便修复 Gitea 中未使用参数的类型错误 Co-Authored-By: Claude Opus 4.6 <[email protected]>
- sync-push-queue: GitLab/Gitea 上传前先获取远程文件 SHA
- 与 GitHub/Gitee 保持一致:先 getFiles 获取 SHA 再上传
- 上传时传递 sha 参数,GitLab 会自动获取 last_commit_id
- 上传后检查结果是否成功,避免无效上传也被标记为成功
- 修复 getFileCommits/getFileContent 路径编码问题
- 修复 history-sheet 从 { data } 对象正确提取提交历史
Co-Authored-By: Claude Opus 4.6 <[email protected]>
- GitLab getFileContent 返回 base64 编码内容,需要解码 - Gitea getFileContent 返回 base64 编码内容,需要解码 - 添加与 GitHub/Gitee 一致的 base64 解码逻辑 Co-Authored-By: Claude Opus 4.6 <[email protected]>
- getFiles: 添加 sha 参数支持,获取特定分支的文件内容 - getFileContentFromCommit: 新增函数,使用 Git tree API 获取特定 commit 的文件内容 - history-sheet: 保存完整 SHA 用于恢复功能,正确提取提交历史数据 - 移除调试日志 Co-Authored-By: Claude Opus 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.