Skip to content
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

Merged
merged 9 commits into from
Aug 19, 2024
Merged

Add script hooks #228

merged 9 commits into from
Aug 19, 2024

Conversation

coordt
Copy link
Member

@coordt coordt commented Aug 18, 2024

This provides a method for running commands and scripts during the version increment process.

coordt added 7 commits August 15, 2024 14:39
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.
Copy link

Version hint: minor
Current version: 0.25.4
New version (when merged): 0.26.0

Comment ID: Display the version hint-auto-generated

Copy link

github-actions bot commented Aug 18, 2024

PR Preview Action v1.4.7
🚀 Deployed preview to https://callowayproject.github.io/bump-my-version/pr-preview/pr-228/
on branch gh-pages at 2024-08-18 21:27 UTC

Copy link

codecov bot commented Aug 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.94%. Comparing base (b45ddb8) to head (04a98d0).
Report is 13 commits behind head on master.

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     
Flag Coverage Δ
python-3.10 93.94% <100.00%> (+0.09%) ⬆️
python-3.11 93.94% <100.00%> (+0.09%) ⬆️
python-3.8 93.86% <100.00%> (+0.09%) ⬆️
python-3.9 93.86% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coordt coordt merged commit 6735a61 into master Aug 19, 2024
14 of 15 checks passed
@coordt coordt deleted the pre-post-bump-tasks branch August 19, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant