Repository navigation
Conversation
The Release Drafter on master was accumulating 2241 merged PRs (199k characters), exceeding GitHub's 125k release body limit. Root cause: master has no published release in its commit ancestry. 4.x releases (rc-7 etc.) are tagged on the maven-4.0.x branch, so release-drafter falls back to maven-3.10.2 as the last release anchor. Fix: pass last-release-tag=maven-4.0.0-rc-7 to the shared workflow, so only the ~30 PRs merged since rc-7 appear in the draft body. The apache/maven-gh-actions-shared#383 companion PR that introduced the last-release-tag input has been merged.
gnodet-bot
left a comment
There was a problem hiding this comment.
LGTM. The fix is correct — last-release-tag input is confirmed present in the @v5 shared workflow (companion PR apache/maven-gh-actions-shared#383 is merged), and anchoring to maven-4.0.0-rc-7 will keep the draft body well within the 125k limit.
One nit: the last-release-tag value is hardcoded and will need a manual update after each new 4.x release (rc-8, 4.0.0 GA, etc.). The PR description already acknowledges this ("When to update"), so this is noted for awareness rather than as a blocker.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
| update_release_draft: | ||
| uses: apache/maven-gh-actions-shared/.github/workflows/release-drafter.yml@v5 | ||
| with: | ||
| last-release-tag: 'maven-4.0.0-rc-7' |
There was a problem hiding this comment.
| last-release-tag: 'maven-4.0.0-rc-7' | |
| last-release-tag: 'maven-4.0.0-rc-7' # Update after each 4.x release tag |
Problem
The Release Drafter workflow on
masterhas been failing since Nov 28:Release Drafter accumulated 2,241 merged PRs (199k characters) because
masterhas no published release in its commit ancestry. 4.x releases (rc-7, etc.) are tagged on themaven-4.0.xbranch, not onmaster. So release-drafter falls back tomaven-3.10.2(the last 3.x release targeting master) as its anchor, and includes every PR ever merged.Fix
Pass
last-release-tag: 'maven-4.0.0-rc-7'to the shared workflow via the new input added in apache/maven-gh-actions-shared#383 (now merged). This anchors the changelog to the last 4.x release candidate, so only the ~30 PRs merged since rc-7 (Sep 24, 2026) are included. The body stays well within the 125k limit.When to update: After each new 4.x published release (e.g. rc-8, 4.0.0 GA), update
last-release-tagaccordingly.Closes #14180
Licensed
The work I am contributing is licensed under the Apache License 2.0, and I have all rights to contribute it.