From c496c6cceb2cee0566ea8dd194c7915be1420850 Mon Sep 17 00:00:00 2001 From: Mario Campos Date: Mon, 21 Sep 2026 16:31:55 -0500 Subject: [PATCH] Rename `name` to `absolutePath` for clarity --- pr-checks/changenotes.mts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pr-checks/changenotes.mts b/pr-checks/changenotes.mts index 9a5c21cf0..d19d2da83 100755 --- a/pr-checks/changenotes.mts +++ b/pr-checks/changenotes.mts @@ -21,7 +21,7 @@ import { CHANGENOTES_DIR } from "./config"; * Describes a changenote file, including its file path, frontmatter, and content. */ interface ChangenoteFile { - name: string; + absolutePath: string; data: Record; content: string; } @@ -42,10 +42,10 @@ function listUnreleasedChangenoteDir(): string[] { * and returns a parsed listing of those changenote files. */ function getChangenotes(): ChangenoteFile[] { - return listUnreleasedChangenoteDir().map((name) => { + return listUnreleasedChangenoteDir().map((absolutePath) => { return { - name, - ...matter(fs.readFileSync(name, "utf-8")), + absolutePath, + ...matter(fs.readFileSync(absolutePath, "utf-8")), }; }); } @@ -93,7 +93,7 @@ function assemble(): ExitCode { try { const changenotes = getChangenotes(); const changenoteBodies = changenotes.map((c) => c.content); - const changenotePaths = changenotes.map((c) => c.name); + const changenotePaths = changenotes.map((c) => c.absolutePath); withChangelog((contents) => { const changelog = parseChangelog(contents);