Commit Graph
11 Commits
Author SHA1 Message Date
Mike Mulligan f054759e2f fix: close every file build-manifest.py opens
The section @include read and the .mu-release.yaml, .mu-manifest.yaml
and computed.json loads passed open() straight to read(), yaml or json
and never closed the file; `python3 -X dev` printed a ResourceWarning for
each. They now read inside with blocks, still as utf-8, and the manifest
they produce is byte-identical.
v1.0.1 v1
2026-10-01 08:19:51 -04:00
Mike Mulligan 42625f4b23 fix: close the file read_text() opens
read_text() returned open(...).read() without closing the file, which
left it to garbage collection and raised a ResourceWarning in the test
run. Read it inside a with block; the encoding stays utf-8.
2026-10-01 07:53:01 -04:00
Mike Mulligan 57910d9c86 fix: keep readme.txt subheads off the lines around them
wporg_subheads() turned `= 0.5.0 =` into `**0.5.0**` with no blank line
after it. Python-Markdown won't let a list interrupt a paragraph, so each
version's `* ` items joined the heading's paragraph as literal text, and
nl2br put <br /> between them. Every changelog published through this
action rendered that way (mu-migration, manifest-updater,
em-event-submissions). A subhead with no blank line before it also joined
the previous version's last item.

The bold line now has a blank line on each side, so it stays its own
block, as wp.org's <h4> does. A subhead that already had blank lines
around it renders exactly as before.

Adds the repo's first tests (stdlib unittest, run with
`python3 -m unittest discover -s tests`) and ignores __pycache__/.
2026-10-01 07:52:01 -04:00
Mike Mulligan dca1a6a5a6 Pass GITHUB_TOKEN (github.token) into the composite step for the Gitea release API v1.0.0 2026-07-15 17:42:16 -04:00
Mike Mulligan 3a45b3d8b4 Docs: full Gitea URL in uses: examples; deploy key is required (was 'optional') 2026-07-15 17:38:06 -04:00
Mike Mulligan ff637932ae Harden channel-publish gate: require CHANNEL_DEPLOY_KEY (was silent skip) 2026-07-15 17:00:21 -04:00
mmulligan 1b84f688b7 Document composite-action + submodule usage, config schemas, release ritual 2026-07-15 15:48:10 -04:00
mmulligan 711a46d3e8 Add update-manifest builder (plugin + theme) 2026-07-15 15:47:25 -04:00
mmulligan c6ff541a1b Add generic plugin/theme release pipeline 2026-07-15 15:46:37 -04:00
mmulligan 9552f63828 Add composite action entrypoint 2026-07-15 15:42:06 -04:00
mmulligan b3cc6eb0e2 Initial commit 2026-07-15 15:41:47 -04:00