Skip to content

Commit

Permalink
Update GitHub warning formatter to include title and file context in …
Browse files Browse the repository at this point in the history
…the message.
  • Loading branch information
adamgordonbell committed Feb 4, 2025
1 parent 613b6a2 commit baea331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lint/validate-frontmatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
};

Expand Down

0 comments on commit baea331

Please sign in to comment.