-
Notifications
You must be signed in to change notification settings - Fork 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
Added Missing Regex for Allowlist Dependency Files #10389
Conversation
@amazimbe , FYI I think this is related to the the issue you noticed today. |
@honeyankit , is there a way to add tests so we can catch this earlier going forward? |
@abdulapopoola This PR needs more work as |
71735ce
to
6a7b0cd
Compare
Thanks for this @honeyankit , a few generic questions:
|
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.
Great job.
fcc801f
to
449d26b
Compare
c5dec55
to
49d1d46
Compare
34da5e8
to
5222cfe
Compare
* added submodules regex * added missing poetry.lock in updated_files_regex * remove unwanted comma * added better comment * fixed lint error * added regex to support vendor files for bundler and go ecosystem * nested regex and test case added for bundler * regex test case added for cargo * regex test case added for composer * regex test case added for devcontainers * fixed lint issue for bundler #updated_files_regex test * regex test case added for docker * regex test case added for elm, submodules, go, gradle * regex test case added for hex and fix for gradle and github_actions * regex test case added for npm, yarn, nuget, maven and fix for hex * regex test case added for pub, python, swift and regexfix for python * fixed nuget regex error and python lint error * fixed lint issue in gradle ecosystem * added nuget.config and NuGet.Config to test for not updating it * fix the nuget.config case * added feature flag for production rollout * replace ff to use boolean variable passed via api * fixed lint issue in hex and nuget rspec
What are you trying to accomplish?
This pull request introduces improvements to the
updated_files_regex
method across all file updaters, enhancing their file matching capabilities. Theupdated_files_regex
method within the FileUpdater class will now ensure that only the intended files are updated for each specific ecosystem. Additionally, this PR includes test cases for theupdated_files_regex
method across all 18 ecosystems.Anything you want to highlight for special attention from reviewers?
This PR includes changes across all ecosystems. For a smoother review process, please refer to my commit messages as they provide clear information. Request to look the regex carefully for any missing manifest files which needs to be added to the
updated_files_regex
.Regex support for vendor files has been added only for the
go_modules
andbundler
ecosystems, as these are the ones currently supported. [doc]Q. How changes to
updated_files_regex
will work ?Before creating the PR, the
updated_files_regex
will validate that the files being updated are appropriate for the ecosystem. If any files are invalid, the PR will not be created and an error will be raised.How will you know you've accomplished your goal?
This PR should not cause any PR creation failures, except in cases where files from different ecosystems are being updated simultaneously. In those situations, an error will be raised to ensure that the updates are handled correctly.
Checklist