Skip to content

fix(release): stop tag-health unpublishing releases; release notes from changelog files - #363

Merged
Shinrai merged 6 commits into
nextfrom
fix/release-drafts-and-notes
Oct 4, 2026
Merged

Shinrai merged 6 commits into
nextfrom
fix/release-drafts-and-notes

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

📦 Dependencies

No dependency updates

🔧 Other Changes

👥 Contributors

@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure type: ci Changes to CI workflows, actions, or build pipelines type: documentation Relates to docs, README updates, guides, or inline code comments labels Oct 4, 2026
Shinrai
Shinrai previously approved these changes Oct 4, 2026
…om changelog files

Push-triggered publishes created the vX.Y.Z tag lightweight and unsigned
(use_gpg is only true on manual dispatch), so the standalone tag-health run
on release:published "fixed" it by deleting the remote tag and pushing a
signed one. Deleting the tag behind a published release turns the release
back into a draft; when the re-push was rejected (ref-lock race, or the App
workflow-permission push check for a tag off the branch tip) the tag stayed
gone, the release stayed a draft, and the step still logged "Fixed 0" and
exited 0. CLDMV/configs v1.2.0 and v1.2.2 ended up like that.

- reusable-publishing: sign release tags whenever the GPG key secret is
  mapped, not only when use_gpg is passed.
- fix-unsigned-tags: replace a tag with an atomic force-update, never a
  delete; a rejected push leaves the original tag in place. End-state check
  re-publishes a release the update turned into a draft, and fails the job
  when a release is left a draft or a tag is missing.
- create-release: final gate that fails unless the release is published and
  its tag exists.
- create-release: use docs/changelog[s]/v<major>/v<version>.md at the release
  commit as the release body when present, keeping the coverage and
  Contributors blocks.
- release/create: drop the duplicated "release: vX.Y.Z - ..." subject line
  and squash trailers; wrap accidental @word / @org/team mentions outside
  code in code spans, keeping the Contributors handles live (replaces the
  zero-width-space JSDoc-tag list).
- fix-orphaned-releases: page through all releases, not the first 30.
- New workflow-sync-release-notes.yml + sync-release-notes action + consumer
  template: re-sync release bodies from changelog files and report (on
  opt-in, repair) drafts, missing tags, missing releases and duplicates.

Fixes #362
… + recreate

fix-non-bot-tags and fix-orphaned-tags had the same delete-then-push
pattern as fix-unsigned-tags: deleting the tag behind a published release
unpublishes it, and a rejected re-push leaves the tag gone. Replace with a
local tag -f plus a force-updating push, which is atomic on the remote, and
pass tag messages through a file instead of the shell command line.

Refs #362
The job-summary table escaped only `|`, so a backslash in a cell (git or
API error text) could turn an escaped pipe back into a cell break
(CodeQL js/incomplete-sanitization, alert #112). Move cell escaping into a
shared escapeTableCell() that escapes backslashes first, then pipes, and
collapses line breaks; add tests with backslash input.

Refs #362
Pass git arguments as an argv array (execFileSync) instead of an
interpolated shell string, so the temp-file path and tag names never go
through a shell.

Refs #362
@Shinrai
Shinrai force-pushed the fix/release-drafts-and-notes branch from 534e016 to d88d3cb Compare October 4, 2026 08:01
@cldmv-bot cldmv-bot Bot added the type: config Changes to repository or project configuration files label Oct 4, 2026
@Shinrai
Shinrai merged commit 6afb771 into next Oct 4, 2026
15 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/release-drafts-and-notes branch October 4, 2026 08:12
cldmv-bot Bot added a commit that referenced this pull request Oct 4, 2026
…ping…

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
- #363
  - fix(tag-health): run tag re-sign/re-point git commands without a shell (e57f7d1)
  - fix(sync-release-notes): escape backslashes in summary table cells (6fd4d8a)
  - fix(tag-health): re-sign and re-point tags in place instead of delete + recreate (3a42470)
  - fix(release): stop tag-health unpublishing releases; release notes from changelog files (4ee38d3)

- #361
  - fix(next-reset): escape backslashes in summary table cells (4f01a0c)
  - fix(next-reset): carry late merges onto the release instead of dropping them (259ad07)

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- #363
  - chore(release-notes): run release-notes tests in npm test; lint and format fixes (d88d3cb)
  - chore(tag-health): drop unused gitCommand import in fix-non-bot-tags (649e9a7)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants