Skip to content

Commit

Permalink
Check that markdown header starts with version instead of is the version
Browse files Browse the repository at this point in the history
  • Loading branch information
jondricek authored Dec 30, 2024
1 parent 7ae8848 commit 6a7fb65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/changelogToGithubRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function extractChangeItems({ version }) {

visit(tree, 'heading', (node, index, parent) => {
const [text] = node.children;
if (text?.type === 'text' && text.value === 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;
Expand Down

0 comments on commit 6a7fb65

Please sign in to comment.