-
Notifications
You must be signed in to change notification settings - Fork 2
PR: Frontmatter Validation – Repair Incorrect or Missing Markdown Frontmatter in Workflow Docs #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| # Dependencies | ||
| /node_modules | ||
| node_modules/ | ||
| /vendor | ||
|
|
||
| # Build directories | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -10,12 +10,18 @@ tags: ['branding', 'automation', 'documentation', 'badges', 'emojis', 'workflows | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| file_type: 'documentation' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| category: 'docs' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| references: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - '../.github/automation/badges.schema.yml' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - '../.github/automation/emoji.schema.yml' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - '../.github/automation/footers.yml' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - '../.github/automation/front-matter.schema.json' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - '../.github/workflows/branding.yml' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - '../.github/agents/branding.agent.js' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - path: '../.github/automation/badges.schema.yml' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: 'Badge schema configuration' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - path: '../.github/automation/emoji.schema.yml' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: 'Emoji schema configuration' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - path: '../.github/automation/footers.yml' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: 'Footer templates configuration' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - path: '../.github/automation/front-matter.schema.json' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: 'Frontmatter schema definition' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - path: '../.github/workflows/branding.yml' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: 'Branding automation workflow' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - path: '../.github/agents/branding.agent.js' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: 'Branding agent implementation' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
10
to
+24
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Quote inconsistency in frontmatter Line 10 uses single quotes: Standardize to double quotes across all documentation files ( Apply this diff: -file_type: 'documentation'
+file_type: "documentation"Alternatively, if double quotes are enforced by schema, ensure all files use them. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Branding Agent — Spec (develop) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Critical: Frontmatter validation error on root README.md blocks merge.
Pipeline validation fails on the
file_typefield with error:tag "file_type" must be string. This is a critical blocker for the root repository README.Root documentation files are essential; validation must pass before merge. The error appears across all files in this PR, suggesting a systemic schema issue rather than a per-file problem.
Required action: Inspect the frontmatter schema definition (
.github/automation/front-matter.schema.jsonor equivalent) to determine:file_typefield (string, array, object, or enum)Use the verification script provided in
.github/agents/README.mdcomment to inspect the schema.I need to verify this critical validation error claim. Let me search the codebase for the schema definition and check the actual frontmatter:
Length of output: 811
🏁 Script executed:
Length of output: 2951
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 509
I need to inspect the schema definitions and validation workflow to understand the actual validation rule:
Length of output: 473
🏁 Script executed:
Length of output: 541
🏁 Script executed:
Length of output: 1990
🏁 Script executed:
Length of output: 256
I found critical issues. Let me check the npm validation code and the frontmatter directory structure:
Length of output: 629
🏁 Script executed:
Length of output: 323
🏁 Script executed:
Length of output: 73
🏁 Script executed:
Length of output: 2367
Found the issue! The file exists but the reference path is wrong. Let me check the actual schema and validation logic:
Length of output: 9233
🏁 Script executed:
Length of output: 3935
🏁 Script executed:
Length of output: 2052
Let me verify if "documentation" is a valid file_type value in the schema:
Length of output: 532
🏁 Script executed:
Length of output: 971
Fix broken reference path in README.md frontmatter.
The reference path
"AUTOMATION_GOVERNANCE.md"(line 26) should be"./.github/automation/AUTOMATION_GOVERNANCE.md"to correctly resolve to the actual file location. The file exists but the relative path in the frontmatter references section is incorrect.🤖 Prompt for AI Agents