-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor(internal/config/output.go): Improve handling of empty fields in ConfigVersion struct - Updated loop logic to handle cases when fields are empty - Removed unnecessary code block for handling reflected type - Added function getAllFieldNames() to retrieve all field names of a given type - Modified loop to iterate over all fields and assign values based on their presence in the reflected value - Implemented check to ensure that the field exists before proceeding with assignment - Updated test cases to cover the changes made This commit refactors the handling of empty fields in the ConfigVersion struct, improving its functionality and readability. The modifications also increase the maintainability of the code by eliminating unnecessary repetition and adding a helper function for retrieving all field names of a given type. * feat(version): Add run hook function to run commands by events * feat(internal/cmd/bump.go): Implement post-bump, pre-changelog, and post-changelog script execution and changelog generation * Add handling for running pre-changelog scripts before generating a changelog * Modify the code to run post-changelog scripts after updating the changelog * Update the function to apply the changelog and handle errors appropriately * Implement post-bump script execution and error handling This commit includes modifications to the internal/cmd/bump.go file, where changes have been made to run pre-changelog scripts before generating a changelog, implement post-changelog script execution and error handling after updating the changelog, and apply the changelog with proper error handling. Additionally, this commit includes running post-bump scripts and error handling for any issues that may arise during their execution. * docs(README.md): version files and hooks configuration - Implemented hooks for pre-bump, post-bump, pre-changelog and post-changelog processes in root directory
- Loading branch information
1 parent
d2f7a0e
commit 67abbf9
Showing
4 changed files
with
105 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters