ci: 新增 data_version 同步 bump 檢查#234
Conversation
資料檔(sandhi_rules.json、reverse_tone_mapping.json、tone_mapping.json、 NAmedias.json、exclusions.json、data/cert|gip/*.json)異動時,若沒有同步 bump data/data_version.json,使用者端 IndexedDB 版本比對會誤判為已是最新, 不會重抓資料(含 sandhi 規則),只能靠 ?force-refresh=true 手動繞過。 過去純靠 commit message 自律(曾被坑兩次),現在改由 CI 擋。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BoNfZkBTnuRzCTX6iatqdL
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
Review:
|
依 PR #234 review 建議修正: - pull_request 改三點 diff(merge-base),避免落後 rebase 的 PR 被 base 分支後續異動誤判 - push 到新分支的 fallback 改用跟預設分支的 merge-base,涵蓋 一次 push 多筆 commit 的情況(原本 HEAD^ 只看得到最後一筆) - 把 workflow 檔自己加進 paths,比照 sandhi-test.yml 慣例 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BoNfZkBTnuRzCTX6iatqdL
Deploying hakspring with
|
| Latest commit: |
cff3877
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0eb79018.hakspring.pages.dev |
| Branch Preview URL: | https://claude-main-sandhi-ruby-disp.hakspring.pages.dev |
Review:
|
資料檔(sandhi_rules.json、reverse_tone_mapping.json、tone_mapping.json、
NAmedias.json、exclusions.json、data/cert|gip/*.json)異動時,若沒有同步
bump data/data_version.json,使用者端 IndexedDB 版本比對會誤判為已是最新,
不會重抓資料(含 sandhi 規則),只能靠 ?force-refresh=true 手動繞過。
過去純靠 commit message 自律(曾被坑兩次),現在改由 CI 擋。
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01BoNfZkBTnuRzCTX6iatqdL