Skip to content

fix(release): release notes over GitHub's body limits fall back to entry titles with a link to CHANGELOG.md, so a long release still publishes #1097

Closed

Description

@dan-petty

Problem

release.yml publishes each GitHub Release with devops release notes --raw -v <version> as its body (.github/workflows/release.yml:83-111, softprops/action-gh-release with body_path). devops release pr puts the same notes in the release PR body (_build_release_pr_body, src/devops_cli/commands/release.py:999-1024). GitHub refuses a Release body over 125,000 characters and a pull request body over 65,536.

v0.2.25 collected 51 changelog fragments, giving a [0.2.25] section of 196,525 characters (210 entries). Earlier releases were 3,350 to 18,858. Merging release PR #1089 as it stands would fail the "Create GitHub Release" step, and v0.2.25 would never be published. devops roadmap reprioritize (#740) treats a release as shipped only once its GitHub Release is published.

Acceptance criteria

  • When a version's notes fit, devops release notes --raw prints them unchanged, and so does the devops release changelog --raw fallback that release.yml uses.
  • When they exceed GitHub's Release body limit (125,000 characters, a named constant), the output keeps every ### section and each entry's title line, drops the entries' sub-bullets, and ends with a link to the version's full section in CHANGELOG.md at its tag (https://github.com/<owner>/<repo>/blob/v<version>/CHANGELOG.md#<anchor>, using GitHub's heading anchor). The result fits the limit. If even the titles do not fit, they are cut at the last whole entry, with a line saying how many were left out.
  • _build_release_pr_body applies the same rule against the PR body limit (65,536 characters, a named constant), counting the rest of the body.
  • Entries are read with the changelog parser the fragment collection already uses (devops_cli.release.changelog_fragments), not new line or regex parsing of Markdown. If that parser cannot return entry titles, extend it there.
  • Tests (offline): a 200,000-character section gives notes under 125,000 characters with all 210-style entry titles and the link; a small section is unchanged; the PR body stays under 65,536; and the v0.2.25 section of this repository's CHANGELOG.md (on the cut branch) gives a body under both limits.
  • uv run devops ci passes, with a changelog fragment and the task file.
  • Pending a person: after the cut merges, the release PR feat(release): v0.2.25 #1089 body is refreshed with the compact notes, and after the release PR merges, the "Create GitHub Release" step succeeds.

Key questions

  • Compact form or attach the full notes as a file? Proposed: the compact form with a link. The full text stays in CHANGELOG.md at the tag, and a Release asset would not be readable on the Release page.
  • Should fragments be shorter? Proposed: yes, as a separate improvement. This item keeps the publish from failing whatever the length.

Strategic alignment

Activity

  1. added this to the v0.2.25 milestone on Oct 3, 2026
  2. added
    type/bug
    priority/p0-critical
    scope/release
    on Oct 3, 2026
  3. dan-petty commented on Oct 3, 2026

    @dan-petty
    OwnerAuthor

    Closed by #1098, merged into release/v0.2.25.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p0-criticalscope/releasetype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions