-
Notifications
You must be signed in to change notification settings - Fork 9.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
[new] scripts/update-schema-id #3790
[new] scripts/update-schema-id #3790
Conversation
This script updates the schema IDs in the following YAML files: schemas/v{major}.{minor}/schema.yaml schemas/v{major}.{minor}/schema-base.yaml and generates the following JSON files from the updated YAML files: schemas/v{major}.{minor}/schema.json schemas/v{major}.{minor}/schema-base.json
scripts/update-schema-id
Outdated
def error_exit(message) | ||
$stderr.puts message | ||
exit false | ||
end |
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.
built-in abort
(method of Kernel) does the same as this error_exit
method
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.
@notEthan Thank you! I have replaced error_exit
with abort
.
Thanks for getting us started with this change. We don't currently have any Ruby code in our repository, and it's not a skill present in our current maintainer cohort either. Could we discuss what this script does, and whether we can use a tech stack that is already in use? |
Okay. A shell script version is here --> PR #3814 |
Replaced by #3814 |
This script updates the schema IDs in the following YAML files:
and generates the following JSON files from the updated YAML files: