Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndpnt committed Feb 22, 2024
1 parent fadfb27 commit 03e27cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions scripts/changelog/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ export function checkChangelog(changelogContent) {

try {
changelog = parser(changelogContent);

console.log('changelog', changelog.toString());
} catch (error) {
throw new Error('Changelog cannot be parsed:', error);
}
Expand Down
10 changes: 3 additions & 7 deletions scripts/changelog/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ export function parser(changelogContent) {

const unreleasedType = extractReleaseType(changelogContent);

return {
unreleasedType,
releases: changelog.releases,
title: changelog.title,
description: changelog.description,
toString: changelog.toString,
};
changelog.unreleasedRegex = unreleasedType;

return changelog;
}

export function extractReleaseType(changelogContent) {
Expand Down

0 comments on commit 03e27cc

Please sign in to comment.