Skip to content

feat: publish GitHub Releases from CHANGELOG.md on tag push - #678

Merged
max-sixty merged 1 commit into
mainfrom
tend-upgrades
Jun 10, 2026
Merged

max-sixty merged 1 commit into
mainfrom
tend-upgrades

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

GitHub Releases froze at 0.0.18: once releasing became tag-push → PyPI (pypi-release.yaml), nothing created the release object — the pre-0.0.19 ones were manual. Tags kept advancing while releases/latest pointed at mid-May. This wires releases into the tag push, modeled on worktrunk's release.yaml (its host job runs gh release create with notes from the version's CHANGELOG section; tend has no cargo-dist or binaries, so a 6-line awk replaces the dist machinery and there are no artifacts to attach).

  • pypi-release.yaml: new github-release job after the PyPI publish — extracts the tag's ## X.Y.Z section from CHANGELOG.md (exact-match awk, so 0.1.1 can't capture 0.1.10) and runs gh release create --verify-tag. Fails loudly if the section is missing rather than shipping an empty release; the error states the manual-recovery path, since the immutable tag means a re-run can't pick up a later fix.
  • CHANGELOG.md (new): curated sections for 0.1.1–0.1.3, seeded from the release-tag compare logs and verified against the cited PRs. Releases for those versions are already backfilled from these sections (created via gh release create, which dates them by tag-commit date, so they sort chronologically — releases/latest now correctly reports 0.1.3). 0.0.19/0.1.0 are left un-released, matching worktrunk's handling of its own one-tag gap.
  • /release skill: CHANGELOG step added before the tag (the workflow reads the tagged commit), plus brief authoring guidance adapted from worktrunk's release skill.
  • nightly skill: the chore: update tend workflows PR body now summarizes notable upstream changes between the old and new version tags (compare API → agent-curated 3–5 bullets) instead of pasting a git diff --stat file list, which carried no signal for a mechanical ref bump. Refs are rewritten as max-sixty/tend#NNN so they resolve from consumer repos, where a bare #NNN would link to the consumer's own issues.

Test plan

  • awk extraction verified for newest/middle/last sections, the 0.1.1-vs-0.1.10 boundary, and the missing-section failure path
  • CHANGELOG entries spot-checked against the GitHub API (all 20 cited PR titles and tag windows match)
  • Backfilled releases verified live: chronological created_at, Latest = 0.1.3
  • pre-commit run on changed files passes (actionlint included)
  • CI green; the workflow's live path first exercises at the 0.1.4 tag

GitHub Releases froze at 0.0.18 — nothing in the release flow created
them once releasing became tag-push → PyPI. Modeled on worktrunk's
release.yaml:

- pypi-release.yaml gains a github-release job: after the PyPI publish,
  extract the tag's `## X.Y.Z` section from CHANGELOG.md and
  `gh release create` with it as the notes; fail loudly if the section
  is missing.
- CHANGELOG.md (new): curated sections for 0.1.1–0.1.3, seeded from the
  release-tag compare logs. Releases for those versions are backfilled
  on GitHub from these sections.
- /release skill: add the CHANGELOG step (before the tag, so the section
  is in the tagged commit) and authoring guidance.
- nightly skill: the upgrade-PR body now summarizes notable upstream
  changes between version tags (via the compare API) instead of pasting
  a git diff --stat file list; refs are rewritten as max-sixty/tend#NNN
  so they resolve from consumer repos.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@max-sixty
max-sixty merged commit b80cf75 into main Jun 10, 2026
7 checks passed
@max-sixty
max-sixty deleted the tend-upgrades branch June 10, 2026 04:38
@max-sixty max-sixty mentioned this pull request Jun 11, 2026
max-sixty added a commit that referenced this pull request Jun 11, 2026
Bumps the generator version to 0.1.4, syncs the lockfile, and adds the
0.1.4 CHANGELOG section (published as the GitHub Release notes on tag
push).

Notable changes since 0.1.3:

- Claude harnesses switch to `bypassPermissions` (#677)
- GitHub Releases publish from `CHANGELOG.md` on tag push (#678) — this
release is the first live exercise of that workflow
- Interactive sandbox receives GitHub Actions context env vars (#664)
- install-tend bot-token step restructured around scope-audit
remediation (#680)
- Review skill checks the rollup before APPROVE (#667);
running-in-ci/triage/ci-fix skill refinements (#661, #666, #669, #670,
#671)

> _This was written by Claude Code on behalf of max_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Fable 5 <[email protected]>
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