Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-CORE-078

A version ships only with its reviewed release notes

The repository check SHALL fail when the package version has no valid notes file under docs/releases-notes/, and the release job SHALL publish that file as the GitHub release notes with its images attached to the release.

Step 3 of path 1 in StRS-MDOKFSTUDIO-CORE-007: from “The tagged version has release notes” to “”.

Scenarios 3

The situations the tests check; open one to read it.

nominalA version pull request carries its notes
Givena `package.json` version X.Y.Z and one folder `docs/releases-notes/YYYY-MM-DD-vX.Y.Z/` with `release-notes.md`, whose first line is a title naming X.Y and whose images are files of that folder
When`just check` runs (`scripts/release_notes.py --check`), locally or in the `static` job of the pull request
Thenthe check passes
nominalThe release publishes the reviewed notes
Givena tag vX.Y.Z whose commit holds its notes folder
Whenthe **Release VSIX** workflow runs
Thenthe notes are prepared before the Marketplace publication, the GitHub release body is the file with each image pointing to `releases/download/vX.Y.Z/{file}`, and the images are attached to the release next to the VSIX
boundaryNotes that block the check or the release
InputOutcome
no folder for the version, or two folders for the versionthe check fails and names the expected path
empty notes, or a first line that is no title or names another versionthe check fails
an image that is missing, in a subfolder or at an absolute URLthe check fails
`--prepare` with a tag that is not a stable `vX.Y.Z`, or without notesthe release stops before the Marketplace publication and writes no notes
a manual dispatch with `notes: placeholder`the release publishes the placeholder, to replace by hand

Implemented in 1

Tested by 2