Skip to content

chore(cli): the release workflow writes polished CLI-scoped notes to GitHub and the tap - #211

Merged
puncsky merged 2 commits into
mainfrom
bex-agent/update-release-cli-to-write-polished-rel
Nov 21, 2026
Merged

puncsky merged 2 commits into
mainfrom
bex-agent/update-release-cli-to-write-polished-rel

Conversation

@bex-co

@bex-co bex-co Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Summary

The CLI release workflow published whatever gh release create --generate-notes produced. In a monorepo that shares one tag namespace, that was never a CLI changelog: busy releases dumped dozens of backend/dashboard/operator PRs on bex users, and quiet ones rendered a bare compare link (v0.9.0, v0.6.0) — sometimes against the wrong previous tag entirely (v0.3.3 compared against a kubelet tag, v0.3.0 against a mobile tag).

Changes

  • New scripts/bex-cli-release-notes.sh: renders the release message from git history. The range starts at the previous published bex-cli/v* tag (never another prefix, never an abandoned orphan tag), counts only the CLI's own inputs (lego/cli/**, scripts/bex-cli-*, scripts/install-bex*, cli-release.yml — the same set the staleness reminder watches), lists feat/fix/perf plus upstream pin bumps under What's new / Fixes, counts the rest as internal, and always adds install/upgrade/verify guidance plus the compare link. --tap renders the plain-text Homebrew tap commit variant.
  • cli-release.yml: the GitHub release body comes from the renderer on both create and re-run paths (a re-run refreshes notes, never assets); the tap commit carries the same highlights under the unchanged bex $VERSION subject.
  • scripts.yml: registers the new self-test and both scripts in the shellcheck gate.
  • /release skill: documents that the workflow owns the body and what verification should expect.
  • docs/bex-cli.md: one sentence on what release notes contain.
  • New scripts/bex-cli-release-notes.test.sh (14 checks): CLI scoping, previous-tag selection, orphan/wrong-prefix handling, pin bumps, empty ranges, tap format, bad inputs.

Testing

  • scripts/bex-cli-release-notes.test.sh: all 14 checks pass (PASS: bex-cli-release-notes).
  • Rendered against real history: v0.9.0 yields the S3-client feature plus 2 fixes (published body was a bare link); v0.8.0 yields 18 CLI entries instead of the ~35-PR backend-churn dump.
  • scripts/skill-layout-validate.sh, scripts/cli-release-staleness.test.sh, scripts/github-actions-validate.sh: pass. bash -n clean on both scripts.
  • Not run locally: shellcheck (no binary in the sandbox; both scripts are registered in the CI shellcheck gate) and prettier --check (not installed; the docs edit matches surrounding style).

🤖 Opened by a bex agent session (muse) · view session

bex agent and others added 2 commits November 21, 2026 00:16
…ious release

The release job's checkout was depth 1 with no tags (run 44869554706
fetches one commit), so the renderer found no previous bex-cli/v* tag and
an empty range, and would publish "No user-facing CLI changes" for every
release. Fetch full history there, and make the renderer refuse a shallow
clone so a future checkout change fails loudly instead.
@puncsky
puncsky marked this pull request as ready for review November 21, 2026 08:16
@puncsky
puncsky force-pushed the bex-agent/update-release-cli-to-write-polished-rel branch from 1345560 to c617902 Compare November 21, 2026 08:16
@puncsky puncsky changed the title feat(cli): release workflow writes polished CLI-scoped notes to GitHub and the tap chore(cli): the release workflow writes polished CLI-scoped notes to GitHub and the tap Nov 21, 2026
@puncsky
puncsky merged commit 06e0187 into main Nov 21, 2026
10 checks passed
@puncsky
puncsky deleted the bex-agent/update-release-cli-to-write-polished-rel branch November 21, 2026 08:37
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
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.

1 participant