-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
🐛 Improve scaffolding to filter existing multiline code fragments #2343
🐛 Improve scaffolding to filter existing multiline code fragments #2343
Conversation
Welcome @armsnyder! |
Hi @armsnyder. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
7ed97e1
to
9d00618
Compare
9d00618
to
0105a97
Compare
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.
.
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.
Thank you for your contribution. 🥇
Yes, you are right that was duplicated.
The test https://github.com/kubernetes-sigs/kubebuilder/pull/2343/checks?check_run_id=3771656261 is failing. Could you please check? The KB is used as a LIB and we cannot break the backwards compatibility. I think a rebase with the master branch will solve this problem. If not, please feel free to ping me after that for we check if it is a false positive.
We need to fix the breaking changes in the API first: https://github.com/kubernetes-sigs/kubebuilder/pull/2343/checks?check_run_id=3771656261
/ok-to-test |
Signed-off-by: Adam Snyder <[email protected]>
0105a97
to
e5f7f0a
Compare
@camilamacedo86 Thanks, I rebased and the API check passes. Just to note, when I ran |
/approved |
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.
/approved
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: armsnyder, camilamacedo86 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Adam Snyder [email protected]
Scaffolding can only detect existing generated code if the code fragments are single-line. As a result, multi-line scaffolding can be inserted into code more than once. This fix improves the scaffolding to detect multi-line code fragments and not inject them.
Fixes #2326