-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add script hooks #228
Add script hooks #228
Conversation
Updated the scm_info structure to include a new field, current_tag, across various configuration files and source code. This ensures that the current tag is tracked and represented in the output formats correctly.
Introduced `setup_hooks`, `pre_bump_hooks`, and `post_bump_hooks` fields to configuration models. Updated corresponding test fixtures to verify these new fields.
Change pre-bump and post-bump to pre-commit and post-commit to better indicate their order of operations.
- Introduced unified handling for setup, pre-commit, and post-commit hooks, including dry-run support. - Added comprehensive tests to ensure the correct behavior for all hook phases, including cases where no hooks are specified or in dry run mode. - Updated environment setup to use a common version environment function.
Version hint: minor Comment ID: Display the version hint-auto-generated |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #228 +/- ##
==========================================
+ Coverage 93.85% 93.94% +0.09%
==========================================
Files 25 26 +1
Lines 1627 1702 +75
Branches 322 330 +8
==========================================
+ Hits 1527 1599 +72
- Misses 73 75 +2
- Partials 27 28 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This provides a method for running commands and scripts during the version increment process.