Repository navigation
File audit issues in the milestone the pom's version names - #4566
Open
evanchooly wants to merge 1 commit into
Open
evanchooly wants to merge 1 commit into
evanchooly wants to merge 1 commit into
Conversation
Issues join the milestone of the release the root pom builds, its version without -SNAPSHOT. The publisher creates that milestone first when it is missing and there is something to publish, and stops on a closed one. PublishMainKt takes the pom as an argument, the policy no longer names a milestone, and the gateway may also create milestones.
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.
Follows up the milestone question on #4556. Stacked on #4565.
Problem
The publisher could only put issues in a milestone named in
publication-policy.json, and the policy names none ("milestone": null). So the scheduled discovery job (#4564) would file issues with no milestone. You decided they should join the next release's milestone, as the pom's version names it, with the milestone created first when it doesn't exist.Example: the root pom is at
3.0.0-SNAPSHOT, so issues join milestone3.0.0(#65 today). After the 3.0.0 release, when the pom moves to3.0.1-SNAPSHOT, the first run with something to file creates3.0.1and files into it.Change
ProjectMilestone.of(pom)reads the pom's ownproject/version, not the parent's or a dependency's, and removes-SNAPSHOT. Anything that isn'tmajor.minor.patch(for example${revision}) is rejected. The XML parser refuses doctypes.Publishertakes the milestone title:GhGateway.createMilestone: a publishing gateway may now alsoPOST repos/O/R/milestones. Like an issue create, it is never replayed. The workflow'sissues: writepermission covers milestones.PublishMainKttakes the pom path as a positional argument (… <journal.json> <pom.xml> <OWNER/REPO>), and the workflow passes$PWD/pom.xml.publication-policy.jsondrops itsmilestonefield.Decisions for review
3.0.0-SNAPSHOT→3.0.0, not3.0.1. Tell me if you meant to bump the patch.Verification
evanchooly/morphia-audits-sandbox.Self-reviewed only: the independent reviewers are out of quota until 2026-11-26.