From b2d837b4f478e251f16a650284d4e680882da9c5 Mon Sep 17 00:00:00 2001 From: Jared Ondricek Date: Tue, 31 Dec 2024 12:41:04 -0600 Subject: [PATCH] Format with Prettier --- src/changelogToGithubRelease.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/changelogToGithubRelease.js b/src/changelogToGithubRelease.js index 65f6bdb..fff0b3e 100644 --- a/src/changelogToGithubRelease.js +++ b/src/changelogToGithubRelease.js @@ -12,7 +12,12 @@ function extractChangeItems({ version }) { visit(tree, 'heading', (node, index, parent) => { const [text] = node.children; - if (text?.type === 'text' && text.value.startsWith(version) && parent && index !== undefined) { + if ( + text?.type === 'text' && + text.value.startsWith(version) && + parent && + index !== undefined + ) { const nextSibling = parent.children[index + 1]; if (nextSibling?.type === 'list') { list = nextSibling;