-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(tool): add asserts to changelog code to make it less fragile. #972
Conversation
3be4260
to
3ff2d90
Compare
@@ -69,6 +70,7 @@ function getGitMetadata() { | |||
} | |||
|
|||
function submitReleaseNotes(version, changelog) { | |||
assert(typeof version == 'number', 'version should be a number.'); |
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.
Here and elsewhere output the broken value into the assert.
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.
done.
3ff2d90
to
fd703c8
Compare
fd703c8
to
de6af6c
Compare
return submitReleaseNotes(version, gitMetadata.changelog); | ||
}) | ||
.catch(errHandler); | ||
} | ||
|
||
function submitReleaseNotes(version, changelog) { | ||
assert(typeof version == 'number', 'version should be a number. ' + version); |
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.
Supports %s interpolation
LGTM with one comment |
fix(tool): add asserts to changelog code to make it less fragile.
No description provided.