-
Notifications
You must be signed in to change notification settings - Fork 78
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
[Pre-Commit] Handle API Modules #4175
Conversation
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.
Amazing job!
If possible lets add a test for it
Co-authored-by: Guy Afik <[email protected]>
Co-authored-by: Guy Afik <[email protected]>
…isto-sdk into handle_api_modules_precommit
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.
but won't it crash the code if type isn't as expected? do we want it to crash?
it has to be a Script
. If it is not a script there is a bug in the graph, and we want it to crash
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.
added a unit test
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.
Good job
add changelog |
Changelog(s) in markdown:
|
Changelog(s) in markdown:
|
When Api Module is changed, it will trigger all the used integrations by the module to lint.
In addition, it will add the API modules to the used integration files, so they will be linted by the environment of the integration that uses the module.
fixes: https://jira-dc.paloaltonetworks.com/browse/CIAC-7447