Enforce README version badge == DIX_VERSION in CI; add bump-version.sh - #25
Merged
Conversation
Makes the static README version badge part of the release step so it can't drift from the shipped version: - ci.yml gains a `version-badge` job that extracts DIX_VERSION (waveform.c) and the README `badge/version-…` value and fails the build if they differ. - scripts/bump-version.sh <version> updates both the DIX_VERSION macro and the README badge in one shot (BSD/GNU-sed portable), so releasing = one command + CI red if you forget. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JpVzsy8Wrc9DYEXns2Njzb
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.
Folds the version-badge bump into the release step so the static badge can't drift.
ci.ymlgains aversion-badgejob: extractsDIX_VERSION(fromwaveform.c) and the READMEbadge/version-…value, and fails the build if they differ.scripts/bump-version.sh <version>updates both theDIX_VERSIONmacro and the README badge in one shot (BSD/GNU-sed portable).Net: releasing =
scripts/bump-version.sh X.Y.Z, and CI goes red if the badge is ever out of sync. Verified the check passes at 3.5.4 and the script is idempotent.🤖 Generated with Claude Code
Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/