From baea33122a17f2eb5fe88ee2f2b79e9ff6091b28 Mon Sep 17 00:00:00 2001 From: Adam Gordon Bell Date: Tue, 4 Feb 2025 16:17:06 -0500 Subject: [PATCH] Update GitHub warning formatter to include title and file context in the message. --- scripts/lint/validate-frontmatter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lint/validate-frontmatter.ts b/scripts/lint/validate-frontmatter.ts index 7952cbd39691..c510d950c4b9 100644 --- a/scripts/lint/validate-frontmatter.ts +++ b/scripts/lint/validate-frontmatter.ts @@ -59,7 +59,7 @@ export interface ValidationConfig { // Environment-specific warning formatters export const warningFormatters = { - github: (msg: string, file: string) => `::warning file=${file}::${msg}`, + github: (msg: string, file: string) => `::warning file=${file},title=${msg}::${msg} (${file})`, console: (msg: string, file: string) => `Warning: ${file}: ${msg}`, };