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

fix: min_coverage parsing with default to 100 #290

Merged

Conversation

kelvinwieth
Copy link
Contributor

@kelvinwieth kelvinwieth commented Oct 14, 2023

Description

Following the conversation on #287, this PR:

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@kelvinwieth
Copy link
Contributor Author

This may be a breaking change. The current behavior is min_coverage with defaults to 0, and fixing it to 100 would "cause existing functionality to change".

index.js Outdated Show resolved Hide resolved
index.js Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
alestiago
alestiago previously approved these changes Oct 19, 2023
Copy link
Contributor

@alestiago alestiago left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for working on this! 💙

index.js Outdated Show resolved Hide resolved
@kelvinwieth
Copy link
Contributor Author

kelvinwieth commented Oct 19, 2023

@alestiago with the addition of min_coverage between 0 and 100, now I think this is definetly a breaking change. What do you think?

@alestiago
Copy link
Contributor

alestiago commented Oct 20, 2023

@alestiago with the addition of min_coverage between 0 and 100, now I think this is definetly a breaking change. What do you think?

I personally don't think this is a breaking change since specifying min_coverage smaller than 0 or greater than 100 was incorrect usage. However, perhaps a less "breaking" solution would be to clamp the values instead of throwing an error, but that might be less intuitive. Either way, I'm fine with both approaches.

@kelvinwieth
Copy link
Contributor Author

@alestiago can you add the hacktoberfest tag?

@alestiago
Copy link
Contributor

@kelvinwieth I'm not sure how do you want me to do so. Unfortunately this year we didn't prepare to participate in Hacktoberfest (hopefully next year we do!).

@alestiago
Copy link
Contributor

alestiago commented Oct 30, 2023

@erickzanardo @renancaraujo @wolfenrain can I get an additional review here?

@alestiago alestiago merged commit d17dc51 into VeryGoodOpenSource:main Oct 31, 2023
5 checks passed
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.

3 participants