Skip to content

Fix weekly update PR missing changelog details#1409

Merged
hua7450 merged 4 commits intomainfrom
fix/weekly-update-changelog-parsing
Feb 26, 2026
Merged

Fix weekly update PR missing changelog details#1409
hua7450 merged 4 commits intomainfrom
fix/weekly-update-changelog-parsing

Conversation

@hua7450
Copy link
Copy Markdown
Collaborator

@hua7450 hua7450 commented Feb 26, 2026

Summary

  • Fixes Weekly policyengine-us update #1312 — weekly update PRs show only the version table with no changelog details
  • The script tried to fetch changelog.yaml from policyengine-us, but that file doesn't exist — the repo uses CHANGELOG.md in standard Keep a Changelog markdown format
  • fetch_changelog() silently returned None, so changelog sections were always empty

Changes

  • check_updates.py: Switch fetch_changelog() to fetch CHANGELOG.md and return raw text; add parse_changelog_md() to parse markdown into the same dict structure downstream functions expect; simplify get_changes_between_versions() to use explicit version numbers instead of bump increment logic; remove yaml import
  • test_check_updates.py: Update test data to use explicit version fields; add TestParseChangelogMd class with 6 test cases (single/multiple versions, multiple categories, H1 heading, empty input)
  • weekly-update.yaml: Remove pyyaml from pip install since it's no longer needed

Test plan

  • All 26 tests pass: cd .github/scripts && python -m pytest test_check_updates.py -v
  • Verify on next weekly update run (or manual workflow dispatch) that PR body includes changelog details

🤖 Generated with Claude Code

hua7450 and others added 4 commits February 25, 2026 19:43
The weekly update script fetched changelog.yaml which doesn't exist in
policyengine-us (the repo uses CHANGELOG.md in Keep a Changelog format).
This caused fetch_changelog() to silently return None, so PR bodies only
showed the version table with no changelog details.

- Switch fetch_changelog() to fetch CHANGELOG.md and return raw text
- Add parse_changelog_md() to parse markdown into structured entries
- Simplify get_changes_between_versions() since markdown entries have
  explicit version numbers (no bump increment logic needed)
- Remove yaml import and pyyaml workflow dependency

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@hua7450 hua7450 merged commit f56c047 into main Feb 26, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant