feat(release): add highlights template to draft releases

pull/10745/head
Ryan Vogel 2026-01-26 17:39:43 -05:00
parent ec2ab639bb
commit c380d389aa
1 changed files with 30 additions and 0 deletions

View File

@ -4,6 +4,35 @@ import { $ } from "bun"
import { Script } from "@opencode-ai/script"
import { buildNotes, getLatestRelease } from "./changelog"
const highlightsTemplate = `## Highlights
<!--
Add highlights before publishing. Delete this section if no highlights.
- For multiple highlights, use multiple <highlight> tags
- Highlights with the same source attribute get grouped together
-->
<!--
<highlight source="SourceName (TUI/Desktop/Web/Core)">
<h2>Feature title goes here</h2>
<p short="Short description used for Desktop Recap">
Full description of the feature or change
</p>
https://github.com/user-attachments/assets/uuid-for-video (you will want to drag & drop the video or picture)
<img
width="1912"
height="1164"
alt="image"
src="https://github.com/user-attachments/assets/uuid-for-image"
/>
</highlight>
-->
`
let notes: string[] = []
console.log("=== publishing ===\n")
@ -11,6 +40,7 @@ console.log("=== publishing ===\n")
if (!Script.preview) {
const previous = await getLatestRelease()
notes = await buildNotes(previous, "HEAD")
notes.unshift(highlightsTemplate)
}
const pkgjsons = await Array.fromAsync(