-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: --discard-approval-on-plan
to dismiss approvals when planning
#2696
feat: --discard-approval-on-plan
to dismiss approvals when planning
#2696
Conversation
@secustor to implement this for gitlab we have to just implement the |
Yes, that's correct. |
Nice, I'll take a look at the gitlab implementation after this get merged. Might be useful for my use case. |
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Thank you @secustor for the contribution! It's very much appreciated. Please propose more if you find another improvement. |
--discard-approval-on-plan
to dismiss approvals when planning
I see the flag "DiscardApprovalOnPlanFlag", but it is no used anywhere as effect that feature is activate by default on the latest version (0.22.0) and there are no way to deactivate it. |
it is by default not activated, look at the code in this PR all new features are usually disabled by default. |
Hmm after re-reviewing this PR I believe @mcantinqc is correct. There is a flag but i dont think the flag is checked unless I'm mistaken. I agree with @jamengual , @mcantinqc please create a ticket. cc @secustor thoughts on this? Workaround for now @mcantinqc is to use v0.21.0 Edit: i added the ticket #2911 |
I have created a hotfix at #2913 |
Looking for people to test the new |
Hey, I'll do some testing later today, I'm interested in implement this for gitlab too. |
@mcantinqc sorry, I misread the code , you were right all along |
This PR implements logic to dismiss reviews of already approved PRs if
atlantis plan
is executed afterwards again.Currently only Github is supported. If other platforms are used the flag will simply not have any affect.
E2E test https://github.com/secustor/renovate_terraform_lock_in_subdirectory/pull/14
Context: #1508