Skip to content
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1997c5f
Initial plan
Copilot Feb 12, 2026
c448425
feat: implement production-ready news generation workflow with multi-โ€ฆ
Copilot Feb 12, 2026
ace2b60
feat: complete multi-language news generation infrastructure
Copilot Feb 12, 2026
99096fa
docs: add comprehensive implementation summary for news workflow
Copilot Feb 12, 2026
fcb6d35
feat: extract news page CSS to external stylesheet
Copilot Feb 12, 2026
86751f3
feat: enhance SEO and add comprehensive structured data
Copilot Feb 12, 2026
8140b20
docs: add comprehensive agentic workflow improvements documentation
Copilot Feb 12, 2026
b36495a
feat: complete Phase 5 quality verification - all checks passed
Copilot Feb 12, 2026
2e5cec7
docs: add Phase 5 completion report with comprehensive results
Copilot Feb 12, 2026
db563b0
docs: clarify multi-language news generation status and capabilities
Copilot Feb 12, 2026
6860bae
docs: add comprehensive multi-language status documentation
Copilot Feb 12, 2026
207dba1
feat: implement configurable multi-language support with comprehensivโ€ฆ
Copilot Feb 12, 2026
54cdf54
docs: add complete multi-language implementation guide
Copilot Feb 12, 2026
9d9a54f
Merge branch 'main' into copilot/analyze-news-article-generator
pethers Feb 12, 2026
e65b72e
fix: address PR review comments - multi-language support and test fixes
Copilot Feb 12, 2026
a9dd53a
plan: fix 4 failing multi-language tests
Copilot Feb 12, 2026
4919f11
fix: resolve 4 failing multi-language tests - all 452 tests now passing
Copilot Feb 12, 2026
01dbf42
docs: add comprehensive test fixes summary
Copilot Feb 12, 2026
db8cf90
docs: add comprehensive translation verification report
Copilot Feb 12, 2026
efca191
feat: enhance localization for all 14 news index languages with 221 nโ€ฆ
Copilot Feb 12, 2026
00bbb68
docs: add comprehensive localization enhancement documentation
Copilot Feb 12, 2026
14c1c03
feat: complete multi-language localization enhancement with 673 testsโ€ฆ
Copilot Feb 12, 2026
a57abf9
docs: add executive implementation summary
Copilot Feb 12, 2026
2509b23
fix: address 8 PR review comments - JSON-LD, breadcrumbs, presets, meโ€ฆ
Copilot Feb 12, 2026
ae355ff
fix: address 7 PR review comments - breadcrumbs localization and testโ€ฆ
Copilot Feb 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions .github/workflows/news-article-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
type: boolean
required: false
default: false
languages:
description: 'Languages to generate (en,sv | nordic | eu-core | all | custom comma-separated)'
required: false
default: en,sv

permissions:
contents: read
Expand Down Expand Up @@ -46,7 +50,9 @@ steps:
run: |
npm ci --prefer-offline --no-audit

engine: copilot
engine:
id: copilot
model: claude-opus-4-6
---

# ๐Ÿ“ฐ News Article Generator Agent
Expand All @@ -62,6 +68,16 @@ Generate news articles based on the latest data from riksdag-regering-mcp server
Check the GitHub event inputs:
- **article_types**: Available from `github.event.inputs.article_types` (default: week-ahead if not provided)
- **force_generation**: Available from `github.event.inputs.force_generation` (default: false if not provided)
- **languages**: Available from `github.event.inputs.languages` (default: en,sv if not provided)

### Language Options

The `languages` input supports:
- **en,sv** (default) - English and Swedish only
- **nordic** - Nordic languages: en,sv,da,no,fi
- **eu-core** - EU core languages: en,sv,de,fr,es,nl
- **all** - All 14 languages: en,sv,da,no,fi,de,fr,es,nl,ar,he,ja,ko,zh
- **custom** - Any comma-separated list (e.g., "en,sv,de,fr")

### Article Types to Generate

Expand Down Expand Up @@ -215,9 +231,12 @@ For each article type with significant updates:
- Reference MCP tool calls
- Include data timestamps

5. **Generate both languages**:
- English version (`-en.html`)
- Swedish version (`-sv.html`)
5. **Generate requested languages**:
- Parse the `languages` input
- Expand presets: "nordic" โ†’ "en,sv,da,no,fi", "eu-core" โ†’ "en,sv,de,fr,es,nl", "all" โ†’ all 14
- Generate article for each language with proper title/subtitle
- Use language-specific Schema.org markup
- Include RTL support for Arabic (ar) and Hebrew (he)

### Step 5: Regenerate News Indexes

Expand Down
33 changes: 30 additions & 3 deletions .github/workflows/news-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
type: string
default: 'week-ahead'
required: false
languages:
description: 'Languages to generate (en,sv | nordic | eu-core | all | custom comma-separated)'
type: string
default: 'en,sv'
required: false

permissions:
contents: write
Expand Down Expand Up @@ -99,15 +104,37 @@ jobs:
id: generate
env:
ARTICLE_TYPES: ${{ github.event.inputs.article_types || 'week-ahead' }}
LANGUAGES: ${{ github.event.inputs.languages || 'en,sv' }}
run: |
echo "๐Ÿ“ฐ Generating news articles..."
echo "๐Ÿ“‹ Article types: $ARTICLE_TYPES"
echo "๐ŸŒ Languages: $LANGUAGES"

# Create metadata directory
mkdir -p news/metadata

# Run news generation script
if [ -f "scripts/generate-news.js" ]; then
node scripts/generate-news.js --types="$ARTICLE_TYPES"
# Expand language presets
case "$LANGUAGES" in
"nordic")
LANG_ARG="en,sv,da,no,fi"
echo "๐ŸŒ Expanding 'nordic' to: $LANG_ARG"
;;
"eu-core")
LANG_ARG="en,sv,de,fr,es,nl"
echo "๐ŸŒ Expanding 'eu-core' to: $LANG_ARG"
;;
"all")
LANG_ARG="en,sv,da,no,fi,de,fr,es,nl,ar,he,ja,ko,zh"
echo "๐ŸŒ Expanding 'all' to all 14 languages"
;;
*)
LANG_ARG="$LANGUAGES"
;;
esac

# Run news generation script (use enhanced version with multi-language support)
if [ -f "scripts/generate-news-enhanced.js" ]; then
node scripts/generate-news-enhanced.js --types="$ARTICLE_TYPES" --languages="$LANG_ARG"

# Check results
if [ -f "news/metadata/generation-result.json" ]; then
Expand Down
Loading
Loading