Skip to content

refactor: changelog ci scripts - #47

Open
yCodeTech wants to merge 7 commits into
masterfrom
refactor/update-changelog-ci-script
Open

refactor: changelog ci scripts#47
yCodeTech wants to merge 7 commits into
masterfrom
refactor/update-changelog-ci-script

Conversation

@yCodeTech

Copy link
Copy Markdown
Owner

This PR refactors various things in the changelog CI scripts: updates docblocks, changes various functions to async, adds new params derived from the workflow itself, and reorders the functions for readability as they're now in order of usage from top-bottom. It also introduces new dev dependencies prettier and prettier-plugin-multiline-arrays to allow the vscode prettier extension to force wrapping of the arrays onto multiple lines, because prettier defaulted to auto-formatting all array elements on to 1 long single line, which is bad for readability.

- Added `context` and `github` params to:
    - The main `updateChangelog` function passing them from it's call in the CI step.
     - `buildEntry` function
    - `formatPRDescription` function.
    - The corresponding docblocks.

- Refactored `buildEntry` function so the return statement isn't one long string. Split multiple sections into variables for ease.

- Changed `formatPRDescription` and `buildEntry` functions to be `async`, and their function calls now `await` them.
- Remove the `-` in the params description because it's rendered as a bullet point in vscode intellisense.
- Updated the return type of `findOrCreateUnreleased` function.
…ulti-lines.

- Added the `prettier-plugin-multiline-arrays` dev dependency to force prettier to wrap arrays onto muliple lines.

- Added the prettier dev dependency because the prettier vscode extension only supports prettier plugins when installed locally in a project.

- Specified the prettier plugin and it's `multilineArraysWrapThreshold` option in the prettierrc.json file to enable the usage of the plugin.
@yCodeTech yCodeTech added the enhancement New feature or quality of life enhancement label Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or quality of life enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant