Skip to content

ci: enrich GitHub release notes - #28

Open
m4sh-wacker wants to merge 2 commits into
mainfrom
ci/enrich-github-release-notes
Open

m4sh-wacker wants to merge 2 commits into
mainfrom
ci/enrich-github-release-notes

Conversation

@m4sh-wacker

@m4sh-wacker m4sh-wacker commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

What this changes

The v0.1.1 GitHub Release contained the categorized fixes from Release Please, but lacked the contributor credits and standalone download guidance from v0.1.0. This change formats newly created root releases using the existing publication workflow.

  • What's Changed keeps the Release Please comparison, date, Conventional Commit categories, scopes, breaking notes and commit citations. Verified merge metadata adds a PR link where one is available. An existing squash-title reference or a second change from the same PR does not add another citation.
  • New Contributors uses GitHub's generated notes for the exact previous/current tag range. Each credited username must match the author of its merged repository PR. Unavailable or ambiguous metadata is skipped. GitHub's separate list of changes is discarded.
  • Standalone Edition names the versioned HTML asset, explains how to open it, and covers local processing, offline use, large inputs and updates.

Publication and recovery

Workflow input on main Behavior
Both inputs empty Release Please creates the release. The workflow immediately records the original title and body hashes, builds the tagged HTML, uploads it, and verifies its SHA-256. Only then does it format the notes.
release_tag Rebuild and verify the standalone HTML for the specified published tag. Release metadata is untouched.
repair_release_notes_tag Look up the published release by tag, download and hash its existing asset, then validate and repair the release notes or confirm that they are already formatted.

Providing both inputs fails before checkout. Manual maintenance uses contents-write permission. It cannot create a Release Please PR. Both v0.1.0 and v0.1.1 are protected.

A versioned HTML comment binds the release ID, tag, phase, original title/body hashes and exact visible Markdown with SHA-256. A repeated repair of a successfully formatted release makes no PATCH, including when GitHub applied the previous PATCH and the runner lost its response. A missing or invalid baseline, a changed body, or an unexpected title stops recovery. The release is re-read immediately before any formatting PATCH. GitHub does not document an atomic conditional PATCH for release metadata, so overlapping manual edits should be avoided while a metadata update is running.

Verification

  • The existing generator regression covers Conventional Commit categories, scopes, breaking changes, PR links, contributor verification, duplicate prevention and missing metadata.
  • All 10 process-level integration tests passed locally on Node 22 and 24. The tests invoke the real publisher with an offline gh executable, exercise the upload and verification shell, and cover rejected and interrupted writes, invalid responses, repeated recovery, asset failures and manual edits.
  • All 1,213 application tests passed locally. ESLint, TypeScript, both production builds, actionlint, project and fixture Markdown lint, spelling and link checking passed. The dependency audit reported nine moderate findings and zero high or critical findings.

No release or tag was created during verification.

GH_TOKEN: 'offline-fixture', RELEASE_TAG: tag, RELEASE_ID: '901', RELEASE_VERSION: '0.1.2',
ORIGINAL_TITLE: title, ORIGINAL_NOTES: notes };
function run(exe, args, success, overrides = {}) {
const r = spawnSync(exe, args, { cwd: dir, env: { ...env, ...overrides }, encoding: 'utf8' });

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