-
Notifications
You must be signed in to change notification settings - Fork 53
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
Run formatter for CHANGELOG.md when generated during release #204
Run formatter for CHANGELOG.md when generated during release #204
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.
LGTM. Nice work on the assertion stuff. That is pretty cool!
A couple of comments on logic organization & the testing bits.
ef8e46d
to
110927e
Compare
…onfig function Allow the getConfig function take in a list of assertions functions which will assert against the retrieved config object. Errors from the assertions will be thrown as expected. The returned config object will has the asserted typings. This will allow retrieving the config object already typed, which provides a convenience for cases where getConfig is called on intialization.
…nd checking format of files Returning an exit code to represent the functions failure/success allows for other tooling to utilize the functions in place, previously when process.exit was called directly, it would end the process entirely.
…the changelog Support prepending the release note entries to the changelog.md file. Additionally, we try to run the formatter on the changelog file to ensure that if formatting is required for the file it is completed. Additionally, updating the `ng-dev release notes` command to leverage the newly created `prependEntryToChangelog` method.
110927e
to
dbc0cd7
Compare
Moves all of the references and instances of testTmpDir to be centralized to using one common symbol. Previously it was defined in two different places and ended up being two different directories.
… to update changelogs during release. Use the appendEntryToChangelog method to update the changelogs, this will enable us to have the logic of managing the changelog file exist in the ReleaseNotes class rather than having the release tool have to understand how to stitch the two together.
…that the temp directory is cleared Creating a bootstrap script for jasmine tests allows us to ensure automatically for all jasmine tests that the temporary directory created for the test runs is cleaned between specs.
dbc0cd7
to
98ca7b5
Compare
tools/jasmine/jasmine.bzl
Outdated
deps = kwargs.pop("deps", []) + [ | ||
"//tools/jasmine:bootstrap", | ||
# Because we don't provided a bundled script, we must ensure that the dependencies for | ||
# bootstrap are also included as dependencies. |
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.
Aren't the transitive deps of the bootstrap target automatically unwrapped?
you could simplify this by just depending on the TS target here while still having the other filegroup for the ES5 file above in the templated args (named bootstrap_init_file or something)
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.
I switched to doing so, though I don't love that we have to still have both dependencies listed here.
…nsures that the temp directory is cleared
…ngelog` to update changelogs during release.
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.
Nice! this turned out pretty large but it's a great refactoring with the beforeEach
jasmine logic.
…the changelog (#204) Support prepending the release note entries to the changelog.md file. Additionally, we try to run the formatter on the changelog file to ensure that if formatting is required for the file it is completed. Additionally, updating the `ng-dev release notes` command to leverage the newly created `prependEntryToChangelog` method. PR Close #204
… to update changelogs during release. (#204) Use the appendEntryToChangelog method to update the changelogs, this will enable us to have the logic of managing the changelog file exist in the ReleaseNotes class rather than having the release tool have to understand how to stitch the two together. PR Close #204
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
See individual commits as this change contains a few refactors to make this easier to reason about.
Closes #197