ci: 加版本一致性檢查(plugin / marketplace / CHANGELOG) - #1
Merged
Conversation
既有 CI 驗 JSON 合法性與檔案齊全,但不驗版本。姊妹 repo talk-craft 正因此 發生漂移(1.2.2 只改了 CHANGELOG,兩個 JSON 停在 1.2.1)且 CI 全綠沒攔到。 本 repo 目前三處一致,此為預防性護欄:任一不一致即 fail,訊息直接指出 發版時三處要一起改。三個 repo 都無 git tag,版本全靠這三處管理。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
動機
既有
validate.yml驗 JSON 合法性、marketplace 必填欄位、SKILL.md frontmatter、references 齊全——但不驗版本。姊妹 repo
talk-craft正因此發生漂移:1.2.2 發版時只更新了CHANGELOG.md,plugin.json與marketplace.json停在 1.2.1,marketplace 顯示的版本與 CHANGELOG 宣稱的功能對不上,CI 全綠也沒攔到(見 astroicers/talk-craft#1)。本 repo 目前三處版本一致,這個 PR 是預防性的——趁沒壞先裝護欄。
改動
validate.yml新增一步(純新增 11 行,不動既有任何步驟):比對
plugin.json/marketplace.json/CHANGELOG.md最新版本標題三者,任一不一致即 fail,錯誤訊息直接指出「發版時三處要一起改」。三個 repo 都沒有 git tag,版本完全靠這三處管理——這正是加檢查的價值。
驗證
出處
用 skill-reviewer 對三個已發布 skill repo 做品質檢測時,從 talk-craft 的實際漂移歸納出的護欄,一併補到另外兩個。
🤖 Generated with Claude Code