callowayproject / bump-my-version

A small command line tool to simplify releasing software by updating all version strings in your source code by the correct increment and optionally commit and tag the changes.
https://callowayproject.github.io/bump-my-version/
MIT License
305 stars 19 forks source link

Add GitHub action with support for commit/tag push workflow trigger #232

Closed rgryta closed 3 weeks ago

rgryta commented 1 month ago

I'd like to somehow contribute to the project considering that I'm pretty much using this package on daily basis. As such I think it would be nice to add a native CI/CD support for GHA.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.94%. Comparing base (b6773ac) to head (e3ff9a1). Report is 6 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #232 +/- ## ======================================= Coverage 93.94% 93.94% ======================================= Files 26 26 Lines 1702 1702 Branches 330 330 ======================================= Hits 1599 1599 Misses 75 75 Partials 28 28 ``` | [Flag](https://app.codecov.io/gh/callowayproject/bump-my-version/pull/232/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=callowayproject) | Coverage Δ | | |---|---|---| | [python-3.10](https://app.codecov.io/gh/callowayproject/bump-my-version/pull/232/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=callowayproject) | `93.94% <ø> (ø)` | | | [python-3.11](https://app.codecov.io/gh/callowayproject/bump-my-version/pull/232/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=callowayproject) | `93.94% <ø> (ø)` | | | [python-3.8](https://app.codecov.io/gh/callowayproject/bump-my-version/pull/232/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=callowayproject) | `93.86% <ø> (ø)` | | | [python-3.9](https://app.codecov.io/gh/callowayproject/bump-my-version/pull/232/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=callowayproject) | `93.86% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=callowayproject#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

rgryta commented 1 month ago

One design decision that I've made with this is that I have not migrated any flags from the CLI to be GHA parameters - all of them (except for args) are connected to their own environment variables, so it's already possible to do so using those. See example in README.md.

coordt commented 1 month ago

@rgryta Thank you for your contribution! I added a few comments and thoughts.