Skip to content

ci: start notes at the first release #221

Closed

Description

@uniqueg

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

  1. added
    priority: medium
    status: in progress
    type: ci / cd
    workload: hours
    on Oct 24, 2026
  2. removed
    status: in progress
    on Oct 24, 2026
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: mediumtype: ci / cdworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions