Skip to content

fix: 保护对账、批量填字段和接入写入 - #27

Merged
guanlili merged 1 commit into
mainfrom
fix/ledger-write-integrity
Nov 12, 2026
Merged

guanlili merged 1 commit into
mainfrom
fix/ledger-write-integrity

Conversation

@guanlili

Copy link
Copy Markdown
Owner

改动

  • 对账使用目标仓库和 issue 编号定位。旧账本仅在标题唯一时匹配,轮次标签按编号生成对账条目。
  • 接入读取仓库文件失败时中止,用读取时的 SHA 提交合并结果,写入失败返回非零退出码。
  • 批量填字段遍历 Project 全部分页,保留数值 0,最后一轮写入后读回。对账和填字段达到轮数上限仍有差异时返回失败。
  • 补齐对账预览命令的输入参数。

验证

本地 28 个单测通过,覆盖同名 issue、Project 第二页、零值、接入读取失败和并发写冲突。语法检查通过。测试使用模拟数据。

@guanlili
guanlili merged commit 0f48740 into main Nov 12, 2026
2 checks passed
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