From 744b10ddc94905f1621437c50cceaf630cd7f355 Mon Sep 17 00:00:00 2001 From: Salah-Eddine Saakoun Date: Thu, 6 Nov 2025 12:27:27 +0100 Subject: [PATCH] fix: add shouldExtractPrLinks to parseChangelog to populate prNumbers After updating to @metamask/auto-changelog v5.1.0 in PR #133, the parseChangelog function requires the shouldExtractPrLinks option to be set to true in order to populate the prNumbers array in changelog entries. Without this option, prNumbers would be empty, causing a runtime error when checking if the current PR number is included in the changelog entries. This fix ensures that PR links are properly extracted and validated during the changelog check process. --- src/changelog-check.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/changelog-check.ts b/src/changelog-check.ts index c9285ccc..cfd0ae06 100644 --- a/src/changelog-check.ts +++ b/src/changelog-check.ts @@ -374,6 +374,7 @@ async function checkChangelogFile({ const changelogData = parseChangelog({ changelogContent, repoUrl: '', // Not needed as we're only parsing changes + shouldExtractPrLinks: true, }); // For release PRs with version changes, check the version section