feat: add version management and CI/CD workflow, add pre-commit hook …#3
Merged
feat: add version management and CI/CD workflow, add pre-commit hook …#3
Conversation
…for version checking
Contributor
There was a problem hiding this comment.
Pull request overview
This PR switches from CI-driven automatic patch version increments to a local, enforced versioning workflow using a pre-commit hook, plus corresponding tooling and documentation updates.
Changes:
- Added a
scripts/pre-commit-version-check.shhook andmake install-hooktarget to enforce that any code changes include a version bump infastskills/__version__. - Removed the CI/CD auto-version-increment job from
.github/workflows/ci.yml. - Updated
README.mdto describe the new manual version management workflow, contributor checklist items, and pre-commit hook usage; bumped the project version from0.1.0to0.1.1.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
scripts/pre-commit-version-check.sh |
New pre-commit hook that inspects staged changes and blocks commits with code changes unless fastskills/__version__ is updated and staged. |
fastskills/__version__ |
Bumps project version from 0.1.0 to 0.1.1 to reflect workflow changes. |
README.md |
Documents the new version management workflow, pre-commit hook installation/behavior, and expands the contributor checklist to require version updates. |
Makefile |
Adds install-hook target and help entry to install the pre-commit version-check hook into .git/hooks/pre-commit. |
.github/workflows/ci.yml |
Removes the auto-version job so CI no longer auto-increments patch versions on pushes to main/master. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
WuizaKaseiyo
approved these changes
Jan 26, 2026
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.
This pull request introduces a new version management workflow that replaces automatic patch version increments in CI with a pre-commit hook that enforces version updates for all code changes. The changes ensure developers manually update the version when making code changes, with clear instructions and tooling support. The documentation and tooling have been updated to reflect and support this new process.
Version management workflow changes:
main/master.scripts/pre-commit-version-check.sh) that checks for version updates whenever code changes are committed. The hook blocks commits with code changes unless the version number infastskills/__version__is updated and staged.Makefileto add aninstall-hooktarget for installing the pre-commit hook, and documented the new target in the help section. [1] [2] [3]Documentation updates:
README.mdto reflect the new manual version management process, including:Version bump:
0.1.0to0.1.1infastskills/__version__to reflect the changes.…for version checking