-
Notifications
You must be signed in to change notification settings - Fork 764
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
Allow to set required_approving_review_count=0 #971
Conversation
While I agree with the technical correctness I think we want to do this in a major release as it breaks existing expectations for anyone using it. I think I will likely need to update some internal modules within my org. |
Simply remove the default and this can be merged as a minor release. I actually disagree with changing the default–no reviews should be an intentional setting of zero, and maintains backwards-compatibility. |
@jspiro Do you want me to change the |
Well, I'm not a maintainer, but I've been using this for a few years and was a contributor at least once :-) My intuition says removing the default is actually the best course of action, I like that–the count should be intentional IMO. It doesn't change previous behavior by accident, it'll result in errors where missing that are easy to fix. BUT: To get this merged ASAP, leaving the previous default but allowing it to be set to zero may satisfy the maintainers releasing it as a minor release, since it only adds new functionality. If it was set to zero before it would have failed validation. |
I have reverted the |
I think we should merge this! (It occurs to me we may need one test to show it can be set to zero, depending whether we have tests for this functionality already. It's NBD to me but might be to maintainers.) |
Is this still targeted to be merged for the v5.0.0 milestone? I recently ran into the issue mentioned in #294 and am curious what the resolution was regarding the major/minor discussion above, since it seems this change will also address #294. I agree with @jspiro that this would be nice to have as soon as possible, especially if it is non-breaking (per @jtyr's change to the default). |
Looks good for a minor release, thanks for all the discussion that went into adjusting this. Aiming to get this released ahead of v5 🙇🏾 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for fixing this quirky behavior.
oops I made my own PR to fix this here before realizing this PR existed: #1042 I added a couple of unit tests to test this new behavior, but looking forward for either one of these PRs to get merged in. |
When using this branch protection settings:
The following Terraform code is trying to change the
required_approving_review_count
value to1
:This PR allows to set the
required_approving_review_count
to0
as that seems to be the default value if Require a pull request before merging is checked.