gnodet opened a new pull request, #383: URL: https://github.com/apache/maven-gh-actions-shared/pull/383
## Summary Adds an optional `last-release-tag` input to the shared release-drafter workflow, allowing callers to override the anchor tag used for changelog generation. ## Problem When a project's development branch (e.g. `master`) has no published release in its commit ancestry, `release-drafter` accumulates **all** merged PRs since the beginning of the repository. For Apache Maven, this causes the release draft body to exceed GitHub's 125,000-character limit: ``` Error: Validation Failed: body is too long (maximum is 125000 characters) ``` The root cause: Maven's 4.x releases are tagged on the `maven-4.0.x` branch, not on `master`. So `master` has no 4.x published release in its ancestry, and release-drafter falls back to `maven-3.10.2` (the last 3.x release targeting master), producing a changelog with 2,241 merged PRs. ## Fix Add an optional `last-release-tag` input (empty string by default, preserving backward compatibility) that is passed through to the `release-drafter` action. Projects can set it to anchor changelog generation to a specific release, e.g. `maven-4.0.0-rc-7`. ## Licensed The work I am contributing is licensed under the Apache License 2.0, and I have all rights to contribute it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
