Repository navigation
feat(release-automation): render README release information per tag, main and maintenance branch - #536
Open
hdamker wants to merge 2 commits into
Conversation
…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.
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".
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
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,
mainand maintenance branches get views rendered from the published releases. Without it, a maintenance release frommaintenance/rXwould carry a tag README that is wrong already at publication./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, frommainand 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 whenconfig/meta-release-mappings.yamlin project-administration lists the release cycle;release-plan.yamlis 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.get_releasesreads 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 newmainview).release_line.pygets the tag-version helpers (latest public release, releases of a cycle, newest pre-release);maintenance_branch.checkandrelease_publisher.latest_flaguse them._get_latest_public_releaseinsnapshot_creator.py(date order) is removed.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;
mainand 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
Additional documentation