Repository navigation
修复 GitHub 工单同步日志中的处理数 - #7
Open
Robert0622 wants to merge 1 commit into
Open
Robert0622 wants to merge 1 commit into
Robert0622 wants to merge 1 commit into
Conversation
This was referenced Nov 19, 2026
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.
Fixes #6
复现与修复
GitHub 工单拉取已经返回本仓库实际处理的工单数,手动同步在构造日志时漏填了
count。修复把这个值写到同一条日志里。成功、空仓库与分页中断共用这条计数路径。已有记录的更新也计入处理数,GitHub 列表返回的 PR 会被排除。验证
GET /api/sync/logs响应。JSON 只做缩进排版。修复前count为 0,修复后为 23,与两次返回的文字摘要及 GitHub 记录一致。组合复测
将四个修复的实际提交应用到 v0.4.0 后,再次从同一数据库触发真实 GitHub 同步。本地记录、GitHub 返回的 23 条工单、日志文字和结构化计数一致。
当前提交的 CI
提交
9459f6ed6030的 15 项 GitHub 检查全部通过,含 macOS。 查看检查记录