Automate problem verification and releases#14
Merged
Conversation
Add scripts/verify_problems.lua (headless replay of every solution plus schema checks) and scripts/load_check.lua, run both from CI on every pull request, and release automatically on merge to main: the merged PR's labels pick the bump (breaking/enhancement/otherwise patch), the tag is derived from the latest v* tag, and the notes carry a problem-count delta. Also refresh CLAUDE.md, which still described the removed keys.lua and a hardcoded category list. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The bullet list duplicated what verify_problems.lua checks and would drift from it. Keep the command itself: the skill runs before the PR exists, so a local failure is cheaper than a red CI run on a published PR. Co-Authored-By: Claude Opus 4.8 <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.
Summary
scripts/verify_problems.lua— 全問題を headless Neovim で再生し、start→goalの変形とスキーマ(id 形式・重複、notes と solutions の数、i18n.ja/en 必須、optimal 1つ、difficulty 1-3)を検証scripts/load_check.lua—lua/vimro/**の全モジュールとplugin/vimro.luaの読み込みチェック.github/workflows/ci.yml— PR と main push で上記2つを実行.github/workflows/release.yml— main マージで検証 → タグ → リリースを自動化。bump は PR ラベル(breaking→ major /enhancement→ minor / それ以外は patch)で決定し、ノートは GitHub 自動生成 +scripts/problem_delta.shの問題差分keys.luaとカテゴリのハードコード記述も修正Verification
nvim --headless -u NONE -l scripts/verify_problems.lua→OK - 38 problems verified (data: 8, plain: 20, python: 10)nvim --headless -u NONE -l scripts/load_check.lua→OK - 7 modules loadedgoalとnotesをわざと壊すと exit 1 で該当 id と実バッファ内容を出力することを確認(revert 済み)problem_delta.shの bash 構文を確認この PR 自体はラベル無し = patch 扱いなので、マージすると
v1.2.2が自動リリースされます。🤖 Generated with Claude Code