Fix Copilot review issues in PR #471: metadata schema, JSON-LD encoding, ZH translation, truncated structured data#472
Merged
pethers merged 2 commits intonews-realtime/2026-02-23-1022-835b5a8b9b85a856from Feb 23, 2026
Conversation
…postrophe encoding, ZH translation, NL breadcrumb Co-authored-by: pethers <[email protected]>
Copilot
AI
changed the title
[WIP] Add climate accountability push by Social Democrats
Fix Copilot review issues in PR #471: metadata schema, JSON-LD encoding, ZH translation, truncated structured data
Feb 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Five issues flagged by Copilot review on the breaking-news PR: malformed generation metadata, truncated/double-escaped JSON-LD fields, and untranslated Chinese content.
Changes
news/metadata/last-generation.json— Replaced non-schema fields (articlesGenerated,eventsDetected,mcpSyncStatus,nextExpectedCheck) with the fields required byLastGenerationMetadata:batchSize,skipExisting,generated,errors,articles,status,note. Restores backward compatibility with scripts/workflows parsing this file.news/index_fr.html— Replaced HTML entity apostrophes ('and double-escaped&#039;) with literal'in all three JSON-LD<script type="application/ld+json">blocks. Also added ellipses to two mid-word truncateddescriptionfields (écosys→écosystèmes, ...;la réforme des→la réforme des retraites, ...).news/index_sv.html— Truncated description now ends at a natural word boundary (...miljömål, ...) instead of mid-word (...samtidigt som e).news/2026-02-23-climate-accountability-push-zh.html— Translated the "数字概览" and "值得关注" sections from English to Chinese; footer boilerplate (technical MCP source labels) left in English, consistent with all other language variants.news/2026-02-23-climate-accountability-push-nl.html— Restored full BreadcrumbListname(Sociaaldemocraten lanceren klimaatoffensief in het Zweedse parlement) which was truncated at...Zweedse p.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.