Skip to content

feat(release-automation): render README release information per tag, main and maintenance branch - #536

Open
hdamker wants to merge 2 commits into
camaraproject:release-automation-refactorfrom
hdamker:feat/ra-readme-release-info-views
Open

hdamker wants to merge 2 commits into
camaraproject:release-automation-refactorfrom
hdamker:feat/ra-readme-release-info-views

Conversation

@hdamker

@hdamker hdamker commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • enhancement/feature

What this PR does / why we need it:

Implements the README "Release Information" content proposed in camaraproject/ReleaseManagement#730: the section on a release tag describes that release, main and maintenance branches get views rendered from the published releases. Without it, a maintenance release from maintenance/rX would carry a tag README that is wrong already at publication.

  • Release tag (/create-snapshot): tag, release type, API versions, the cycle's CHANGELOG file on the tag; a note on pre-releases. No statement about the latest release of the repository, no meta-release. Built from the snapshot alone, no GitHub calls.
  • main (post-release sync PR, from main and from a maintenance branch): latest public release = highest tag that is not a pre-release (the release GitHub marks Latest), with an Upcoming Release Preview for a pre-release of a later cycle. The meta-release is shown when config/meta-release-mappings.yaml in project-administration lists the release cycle; release-plan.yaml is no longer a source.
  • maintenance/rX (branch creation and the sync PR into the branch): a warning that this is a maintenance branch, then the latest release of release cycle rX.
  • The sync PR no longer copies the block from the tag. A README that cannot be rendered is a warning; the PR body names only the files that changed.
  • get_releases reads every page: with more than 30 releases, --paginate --jq . printed one array per page and the function returned an empty list (affects Latest, maintenance branch creation and the new main view).
  • release_line.py gets the tag-version helpers (latest public release, releases of a cycle, newest pre-release); maintenance_branch.check and release_publisher.latest_flag use them. _get_latest_public_release in snapshot_creator.py (date order) is removed.
  • Templates renamed to release-info-tag, release-info-main-*, release-info-maintenance-branch; the header comment names release automation instead of project-administration.

Which issue(s) this PR fixes:

Part of #476

Special notes for reviewers:

Existing tags keep their README; main and maintenance branches get the new views with their next release. The meta-release usually appears with a later release, because the mapping is merged after the public release. An end-to-end run on ReleaseTest2 follows, together with the on-merge publication of #534.

Changelog input

 release-note
The README Release Information section on a release tag describes that release only; main and maintenance branches show views rendered from the published releases by the post-release sync PR.

Additional documentation

docs
release_automation/docs/technical-architecture.md (§2.10.1), release_automation/docs/repository-setup.md (README.md delimiters)

…main and maintenance branch

A tag README now describes that release only; main and maintenance/rX get
views rendered from the published releases by the post-release sync PR.
The meta-release comes from the project-administration mapping, never from
release-plan.yaml.
@hdamker

hdamker commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@tanjadegroot @Kevsy @rartych on this PR a review of the mustache template in templates/README for the different cases would make sense. Either here in the PR or after I have merged and used the new template with ReleaseTest2 repo for releases.

…E views

Past 30 releases, `gh api --paginate --jq .` printed one array per page and
get_releases returned an empty list, which the main view would have rendered
as "no releases".

@Kevsy Kevsy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants