feat(cmd-version): changelog available to bundle #779
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Adjust order of operations during
semantic-release version
command to build changelog prior tobuild_command
execution.Rationale
I desire to have the ability to generate the changelog and mark versions without creating a commit or tag, and also the ability to bundle the changelog into the bundle. This is currently unavailable due to the order of execution. This modification moves changelog generation up before the build command which allows the build_command to bundle it in. The commits don't change either but instead this consolidates adding to the index into one git command prior to the commit.
How did I test?
Successful refactor is captured by:
tests/command_line/test_version.py::test_version_only_update_files_no_git_actions()
- where the CHANGELOG is now a part of the commit of changed files along with the other version modificationstests/command_line/test_version.py::test_version_no_push_force_level()
- where changelog is now a part of the commit of changed files along with the version modificationsHow to verify
Review entire test suite to validate no regressions occurred (see CI pipeline results)