Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ jobs:

# Only a final release closes its milestone. A dev tag leaves it open (the cycle goes on); a post tag has no milestone of its own
# (its notes come from the commit range, not from a milestone). Items still open in the milestone move to the next one first, and
# every move is logged. The next one is the open milestone with the earliest due date after this one. When there is none, the
# every move is logged. The next one is the open milestone with the earliest due date after this one; an open milestone without a due
# date counts as the latest, as in assign-milestone.yml, so it is taken when no dated one follows. When there is none, the
# milestone is created, named after the next upstream engine version (due 30 days after this one; the base of the upstream `main` version, as in
# development/release.adoc), when that can be read. Otherwise nothing is moved or closed and the job fails, so the maintainer
# creates the next milestone and re-runs this workflow (the release step is a no-op edit the second time).
Expand All @@ -146,7 +147,7 @@ jobs:
exit 0
fi
if [ "$open_issues" != 0 ]; then
next="$(jq -r --arg n "$number" --arg due "$due" '[.[] | select(.state == "open" and (.number | tostring) != $n and .due_on != null and ($due == "" or .due_on > $due))] | sort_by(.due_on) | .[0].number // empty' <<< "$milestones")"
next="$(jq -r --arg n "$number" --arg due "$due" '[.[] | select(.state == "open" and (.number | tostring) != $n and ($due == "" or .due_on == null or .due_on > $due))] | sort_by(.due_on // "9999-12-31T23:59:59Z") | .[0].number // empty' <<< "$milestones")"
if [ -z "$next" ]; then
upstream="$(curl -fsS https://raw.githubusercontent.com/ArcadeData/arcadedb/main/pom.xml | sed -n '/<artifactId>arcadedb-parent<\/artifactId>/,/<\/version>/ s/.*<version>\(.*\)-SNAPSHOT<\/version>.*/\1/p' | head -n 1 || true)"
if [[ "$upstream" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ && "$upstream" != "$BASE" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/development/release.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ A release does not end on PyPI: it ends with a GitHub Release, as in the upstrea
* The notes come from `scripts/release_notes.py`. The milestone is named after the base `A.B.C` (`26.11.1` for `26.11.1`, `26.11.1.dev2` and `26.11.1.post1`). A pull request is listed when it is merged, has that milestone and its merge commit is in the tag, grouped by its first matching label: `bug` (Bug fixes), `performance` (Performance), `enhancement` (Features), `documentation` (Documentation), everything else under Other. Each line is the title and `(#N)`. The notes also have the install lines, the engine version and the PyPI pages of both packages.
* A final release lists the whole milestone. A `devN` lists only what is not in the previous dev tag of the same base. A pull request without the milestone is not in the notes of a final or dev release, so check the milestone before the tag.
* A `postN` does not use a milestone, because the final release closed it. Its notes list every pull request merged between the previous tag of the same base (the final or `post(N-1)`) and the tag, found from the commits of that range, whatever milestone the pull request has or none.
* After a final release (not `devN`, not `postN`) the milestone `A.B.C` is closed, after what is still open in it moves to the next milestone. The next milestone is the open one with the earliest due date after this one. When there is none, the workflow creates one named after the next upstream engine version (the base of the upstream `main` version, the same command as in <<choosing-the-next-dev-version,Choosing the next dev version>>) and due 30 days after the closed one. When that version cannot be read, or is the same version, nothing is moved or closed and the run fails with a message: create the next milestone with a due date and re-run the workflow. Every move is logged. The milestone auto-assignment of merged pull requests, where it is set up, then picks the next milestone, because the closed one is no longer open.
* After a final release (not `devN`, not `postN`) the milestone `A.B.C` is closed, after what is still open in it moves to the next milestone. The next milestone is the open one with the earliest due date after this one; an open milestone without a due date counts as the latest, as it does for the auto-assignment, so it is taken when no dated one follows. When there is none, the workflow creates one named after the next upstream engine version (the base of the upstream `main` version, the same command as in <<choosing-the-next-dev-version,Choosing the next dev version>>) and due 30 days after the closed one. When that version cannot be read, or is the same version, nothing is moved or closed and the run fails with a message: create the next milestone with a due date and re-run the workflow. Every move is logged. The milestone auto-assignment of merged pull requests, where it is set up, then picks the next milestone, because the closed one is no longer open.
* A run for a release that already exists edits its notes and flag, so a re-run is safe.

Preview the notes before the tag, and read them again after the release:
Expand Down
Loading