Skip to content

Generate release changelog entries from git diff and align v0.4.7 notes with actual changes#78

Merged
chefgs merged 5 commits into
release/v0.4.7from
copilot/update-changelog
Jul 8, 2026
Merged

Generate release changelog entries from git diff and align v0.4.7 notes with actual changes#78
chefgs merged 5 commits into
release/v0.4.7from
copilot/update-changelog

Conversation

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Release notes were being generated with a generic placeholder instead of the real delta between commits. This updates the release flow to derive CHANGELOG.md entries from git diff output and refreshes the existing 0.4.7 entry to reflect actual file-level changes.

  • Release workflow: derive changelog content from commit delta

    • Reordered release steps so version bump + badge updates happen before changelog generation.
    • Replaced static changelog text with dynamic lines built from git diff --name-status HEAD.
    • Maps git status codes (A/M/D/R/C) to readable changelog verbs.
    • Excludes CHANGELOG.md from generated lines to avoid self-referential entries.
    • Fails fast when no release-file changes are detected; logs unknown status codes as warnings.
  • Changelog: update latest release entry

    • Revised 0.4.7 section to document the concrete changes from the previous release commit:
      • version bump in cli/__version__.py
      • version badge updates in README.md and hugo-docs/content/_index.md
# release.yml (changelog generation)
diff_output = subprocess.check_output(
    ["git", "diff", "--name-status", "HEAD"], text=True
).strip()

if file_path == "CHANGELOG.md":
    continue

changes.append(f"- {status_label} `{file_path}`.")

@chefgs chefgs marked this pull request as ready for review July 8, 2026 16:47
@chefgs chefgs merged commit aa50dd4 into release/v0.4.7 Jul 8, 2026
2 checks passed
@chefgs chefgs deleted the copilot/update-changelog branch July 8, 2026 16:48
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.

2 participants