-
Notifications
You must be signed in to change notification settings - Fork 4.3k
chore: add metadata import and statement updater #32828
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
Conversation
a74b3c0 to
9ffe3f8
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.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.
ae763b0 to
f9f14d4
Compare
9ffe3f8 to
be91a8f
Compare
be91a8f to
02bb486
Compare
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
@mergify refresh |
✅ Pull request refreshed |
|
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
Reason for this change
As a follow up to #32827. We need to add metadata statement to the constructor to every L2 constructs that inherits
Resourceclass. We usedts-morphas the typescript parser to parse all CDK files and find the constructs that match the requirements.Add import statement and
this.node.addMetadata(statement to the file.Description of changes
Main change is a one-time tool
metadata-updaterto automatically find the right classes and add import statements and add metadata statements. The tool can be run multiple times and should not add additional import or add metadata statements to files that already been added.Description of how you validated changes
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license