Skip to content

Commit

Permalink
Fix error in release notes that displays a broken link when there are…
Browse files Browse the repository at this point in the history
… no changes
  • Loading branch information
tsu committed Nov 13, 2024
1 parent 2ef0eed commit 36498cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ci/publish-release-notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function getLastNTags(n: number): string[] {

function getCommitsBetweenTags(tag1: string, tag2: string): string[] {
const command = `git log ${tag1}..${tag2} --oneline`;
return runGitCommand(command).split('\n');
return runGitCommand(command).split("\n").filter(Boolean);
}

function runGitCommand(command: string): string {
Expand Down

0 comments on commit 36498cc

Please sign in to comment.