You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated part of the notes of a first release should list all merged pull requests from the start of the repository, even if older tags without a published release exist.
The release workflow passes previous_tag_name to GitHub's releases/generate-notes only for tags with a published release (scripts/release_version.py previous). Without it, GitHub picks the previous tag itself, whether or not it has a release. That is what happened for cloud-registry's v0.4.0: GitHub started the list at the older tag v0.3.0, which has no release, so the notes had to be rebuilt by hand to list all pull requests.
Proposal
Keep passing previous_tag_name only for published releases.
If there is none (a first release), don't let GitHub choose: build the list of merged pull requests in the history of the release commit via the API, in GitHub's format (* <title> by @<author> in <url>, "New Contributors", **Full Changelog**: <repo>/commits/<tag>), so that scripts/release_notes.py body combines it with the curated notes as before.
Tests for the list (order, contributors, pull requests outside the history of the tag).
The same tooling is used in cloud-registry and proTES.
Activity