[PR #9067] [MERGED] refactor(ci): simplify release notes to one-line entries #25314

Closed
opened 2026-04-15 22:49:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/9067
Author: @gustavovalverde
Created: 4/9/2026
Status: Merged
Merged: 4/9/2026
Merged by: @gustavovalverde

Base: mainHead: fix/release-notes-changeset-package-priority


📝 Commits (4)

  • 05cf8ab fix(ci): prefer changeset-declared package over file-path heuristic
  • 3c12c20 fix(ci): place PR link after first line and indent multi-line descriptions
  • 0956e59 refactor(ci): simplify release notes to one-line entries with per-package CHANGELOG links
  • 40f574f fix(ci): use exclamation emoji for breaking changes heading

📊 Changes

3 files changed (+185 additions, -136 deletions)

View changed files

📝 .github/prompts/release-notes-rewrite.md (+51 -67)
📝 .github/scripts/release-notes.ts (+91 -52)
📝 .github/workflows/release.yml (+43 -17)

📄 Description

Summary

Rewrites the release notes pipeline so each entry is a single-line PR title instead of the full changeset description. The AI stage now polishes titles (removes scopes, past tense, user-focused) rather than expanding multi-paragraph descriptions.

  • Use PR titles as entry content; changeset descriptions passed as a JSON sidecar for AI context
  • Per-package CHANGELOG link at the end of each section (uses GITHUB_SHA for always-valid URLs)
  • Consolidate packageNameToPath into packageToDir (fixes silent drop of CLI orphan changesets)
  • Add post-AI validation step: checks PR link count and package headings, falls back to raw if mismatched
  • Guard ai-notes on ai-prompt outcome to prevent running with an empty prompt
  • Remove dead code: distTag parsing, has_breaking/pr_numbers outputs
  • Blog post link only on minor releases (x.y.0)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/9067 **Author:** [@gustavovalverde](https://github.com/gustavovalverde) **Created:** 4/9/2026 **Status:** ✅ Merged **Merged:** 4/9/2026 **Merged by:** [@gustavovalverde](https://github.com/gustavovalverde) **Base:** `main` ← **Head:** `fix/release-notes-changeset-package-priority` --- ### 📝 Commits (4) - [`05cf8ab`](https://github.com/better-auth/better-auth/commit/05cf8ab0a0683ae99b0545415b412404b49008e8) fix(ci): prefer changeset-declared package over file-path heuristic - [`3c12c20`](https://github.com/better-auth/better-auth/commit/3c12c2043a0be4bbc4438f32e115c381550edce3) fix(ci): place PR link after first line and indent multi-line descriptions - [`0956e59`](https://github.com/better-auth/better-auth/commit/0956e59d9181bf9d24039564fad3c7d3bdcc3c49) refactor(ci): simplify release notes to one-line entries with per-package CHANGELOG links - [`40f574f`](https://github.com/better-auth/better-auth/commit/40f574fdcad0902197dc12a6d592812a334a1794) fix(ci): use exclamation emoji for breaking changes heading ### 📊 Changes **3 files changed** (+185 additions, -136 deletions) <details> <summary>View changed files</summary> 📝 `.github/prompts/release-notes-rewrite.md` (+51 -67) 📝 `.github/scripts/release-notes.ts` (+91 -52) 📝 `.github/workflows/release.yml` (+43 -17) </details> ### 📄 Description ## Summary Rewrites the release notes pipeline so each entry is a single-line PR title instead of the full changeset description. The AI stage now polishes titles (removes scopes, past tense, user-focused) rather than expanding multi-paragraph descriptions. - Use PR titles as entry content; changeset descriptions passed as a JSON sidecar for AI context - Per-package `CHANGELOG` link at the end of each section (uses `GITHUB_SHA` for always-valid URLs) - Consolidate `packageNameToPath` into `packageToDir` (fixes silent drop of CLI orphan changesets) - Add post-AI validation step: checks PR link count and package headings, falls back to raw if mismatched - Guard `ai-notes` on `ai-prompt` outcome to prevent running with an empty prompt - Remove dead code: `distTag` parsing, `has_breaking`/`pr_numbers` outputs - Blog post link only on minor releases (`x.y.0`) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:49:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25314