Skip to content

disabled/release.yml: changelog-extraction awk pattern breaks on unbracketed version headings #88

Description

@man4ish

Summary

disabled/release.yml's changelog-extraction step uses an awk pattern that requires bracketed ## [VERSION] headings:

NOTES=$(awk "/^## \[${VERSION}\]/{flag=1; next} /^## \[/{flag=0} flag" docs/CHANGELOG.md)

But the two most recent entries in docs/CHANGELOG.md dropped the brackets:

## [Unreleased]
## v0.7.0 (2026-08-07)        ← no brackets, won't match
## v0.6.0-beta (2026-07-18)   ← no brackets, won't match
## [0.5.0-beta] - 2026-07-19  ← bracketed, still matches

Traced the format drift to 0954e6b / 6806396 (the v0.7.0-beta release) — predates the recent docs/ reorg, unrelated to it.

Impact

None today — .github/workflows/disabled/release.yml is disabled. But if it's ever re-enabled and a tag like v0.7.0 triggers it, VERSION=0.7.0 and the awk would search for ## [0.7.0], find nothing, and silently produce empty release notes for that version (and for v0.6.0-beta).

Recommended fix

De-bracket the awk pattern (more resilient than re-bracketing historical changelog entries, since it tolerates both heading styles going forward). Not implementing now — no active impact while the workflow stays disabled.


🤖 Filed by Claude Code during a top-level directory cleanup pass (see commit eed28d0).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions