You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
This pull request refactors the logic for constructing release notes in
`scripts/main.ps1` to improve clarity and maintainability. The changes
separate the handling of PR title and body into distinct blocks and
ensure that notes are only added when they are non-empty.
### Improvements to release notes construction:
* Refactored the logic to initialize `$notes` as an empty string and
append the PR title and body conditionally, instead of combining them in
a single step. This improves readability and modularity.
* Added a check to ensure that `$notes` is non-empty before appending it
to the `$releaseCreateCommand`, preventing unnecessary arguments when no
notes are provided.
* Enhanced debugging output by including the constructed `gh` arguments
for better traceability during execution.
0 commit comments