ci: 現行バージョン表記の検証・同期機構を導入する - #20
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This reverts commit 8916be2.
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.
目的
Dependabot 等の版更新はマニフェスト(version catalog / wrapper /
enumizerVersion)しか書き換えず、README / docs /.idea/kotlinc.xml中の現行バージョン表記が置き去りになる。表記の乖離を CI で検出し、1 コマンドで追随できるようにする。内容
checkVersionMentions(check紐付け = build ジョブが検証)とsyncVersionMentions(書き換え)を追加。対象は許可リスト 6 ファイル × 文脈付きパターンで、サポート下限(
Kotlin 2.4/Gradle 9+/Maven 3.9+)・特定版に固定した実測エビデンス(設計00)・別版での例示は対象外.mdはビルド入力の allowlist 外のため、表記側だけを変更する PR 向けにversion-mentionsジョブを専用フィルタ(PR のみ評価)で分離起動し、ci-gateの needs へ連結。dependabot.yml へ運用コメントを追記検証(ローカル)
checkVersionMentionsgreen・build→checkへの連鎖を dry-run で確認syncVersionMentions→ 再検証 green と、全置換箇所の書換・保護対象の無傷(2.4.x追随・minor 粒度維持を含む)を実測して復元済みこの PR 自体で確認する挙動
checkVersionMentionsが実行され green になること.mdを変更しない本 PR ではversion-mentionsジョブがスキップされ、ci-gateが成功扱いで集約すること🤖 Generated with Claude Code