Skip to content

Commit 2560f06

Browse files
committed
fix: make second null check case-insensitive to prevent 'Null (#PR)' entries
The existing case-insensitive check at line 147 only prevented processing, but the filter at line 162 was case-sensitive, allowing 'Null' and 'NULL' entries to leak through into the changelog.
1 parent a08b6cb commit 2560f06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/get-new-changes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ async function getCommits(
159159
description = subject.match(/^(.+)\s\(#\d+\)/u)?.[1] ?? '';
160160
}
161161

162-
if (description !== 'null') {
162+
// Filter out entries marked as no-changelog (case-insensitive null check)
163+
if (description.toLowerCase() !== 'null') {
163164
const prLabels = await getPrLabels(repoUrl, prNumber);
164165

165166
if (prLabels.includes('no-changelog')) {

0 commit comments

Comments
 (0)