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

feat: draft of the --empty parameter #723

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

12rambau
Copy link
Contributor

superceed #696

Description

First draft of a new feature. The idea is to grant the user the capability to run cz bump without prior commits. The reasons are described in the associated issue.

here we add an --empty parameter to the bump method
when this parameter is set and if no increment is find, a automatic "PATCH" is released.

I'll wait for your feedback before working on tests and documentation.

Checklist

  • Add test cases to all the changes you introduce
  • Run ./scripts/format and ./scripts/test locally to ensure this change passes linter check and test
  • Test the changes on the local machine manually
  • Update the documentation for the changes

Additional context

Fix #662

@codecov
Copy link

codecov bot commented Apr 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.54%. Comparing base (120d514) to head (c71773a).
Report is 325 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #723      +/-   ##
==========================================
+ Coverage   97.33%   97.54%   +0.21%     
==========================================
  Files          42       55      +13     
  Lines        2104     2489     +385     
==========================================
+ Hits         2048     2428     +380     
- Misses         56       61       +5     
Flag Coverage Δ
unittests 97.54% <100.00%> (+0.21%) ⬆️

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.

@woile
Copy link
Member

woile commented Apr 24, 2023

LGTM 💪🏻 , needs tests though

@12rambau
Copy link
Contributor Author

🍾 Nice to see that you approve the idea.

needs tests though

absolutely, I'll work on them this week (I hope)

@woile woile requested a review from Lee-W April 28, 2023 07:42
Copy link
Member

@Lee-W Lee-W left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I recently happen to work on a project need such feature lol 🎉

@Lee-W
Copy link
Member

Lee-W commented Apr 21, 2024

@woile @noirbizarre, I picked this up and refactored it a bit. I changed the argument to --allow-no-commit. One weird thing that might happen is that one commit might have multiple versions. I'm not sure whether it would cause any issue

@12rambau
Copy link
Contributor Author

thanks @Lee-W

@noirbizarre noirbizarre mentioned this pull request Apr 24, 2024
3 tasks
@Lee-W Lee-W removed needs: test-case new to add test case to prove the functionality needs: documentation pr-status: wait-for-modification labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create a dev bump straight after a normal bump
4 participants