♻️ Refactor Get-ReleaseDescription.ps1 to Improve Modularity and Add Enhanced Release Description Functionality #2291
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.
♻️ (Get-ReleaseDescription.ps1): refactor to use Get-GitChanges function for better modularity
Refactor the script to replace inline git operations with a call to the Get-GitChanges function. This improves code modularity and readability, making it easier to maintain and extend in the future. The new function encapsulates the logic for fetching git changes based on the specified mode, reducing redundancy and potential errors.
✨ (Get-ReleaseDescription.ps1): add new function Get-ReleaseDescription2 for enhanced release descriptions
♻️ (Get-ReleaseDescription.ps1): refactor existing functions to improve modularity and readability
🔧 (Get-ReleaseDescription.ps1): add new configuration options for OpenAI API integration
Introduce a new function
Get-ReleaseDescription2
to generate detailed release descriptions using OpenAI's API. Refactor existing code to improve modularity, making it easier to maintain and extend. Add new configuration options to support different modes and environment variables, enhancing the script's flexibility and usability.🔧 (Get-ReleaseDescription.ps1): switch from Write-Host to Write-Debug for better logging The change replaces
Write-Host
withWrite-Debug
to improve logging practices. UsingWrite-Debug
allows for more controlled and conditional output, which is useful for debugging without cluttering standard output. Additionally, the elapsed time for the operation is now logged, providing better insights into performance.✨ (build): add test.ps1 script for generating release descriptions
📝 (docs): update MigrationTools.xml with new Git metadata
Add a new PowerShell script
test.ps1
to the build process to generate release descriptions using theGet-ReleaseDescription2
function. This script helps automate the release note generation, improving the release workflow.Update
MigrationTools.xml
to reflect the latest Git metadata, including commit hashes, commit dates, and version tags. This ensures that the documentation is up-to-date with the current state of the repository.