Skip to content

Commit

Permalink
Merge branch 'feat/chanelog_project' of https://github.com/BigSamu/Op…
Browse files Browse the repository at this point in the history
…enSearch-Dashboards into feat/chanelog_project
  • Loading branch information
BigSamu committed Dec 13, 2023
2 parents bc988e7 + 69bb1c6 commit 925ee36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/dev/generate_release_note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ async function readFragments() {

(async () => {
const { sections, fragmentPaths } = await readFragments();
deleteFragments(fragmentPaths);

// Generate changelog sections
const changelogSections = Object.entries(sections).map(([sectionKey, entries]) => {
Expand All @@ -109,4 +108,6 @@ async function readFragments() {

// Update changelog file
addContentAfterUnreleased(filePath, changelog);

deleteFragments(fragmentPaths);
})();
3 changes: 2 additions & 1 deletion src/dev/generate_release_note_helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export function validateFragment(content: string) {
if (entry === '') {
continue;
}
if (!entryRegex.test(entry)) {
// if (!entryRegex.test(entry)) {
if (!entryRegex.test(entry.trim())) {
throw new Error(`Invalid entry ${entry} in section ${sectionKey}.`);
}
}
Expand Down

0 comments on commit 925ee36

Please sign in to comment.