diff options
| author | Ryan Vogel <[email protected]> | 2026-01-26 19:37:54 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-26 19:37:54 -0500 |
| commit | bf463aee04bee55a1bf616be1ab1d14ed48f105f (patch) | |
| tree | 49ffd473d1a8670c051dccea46696d1ef8c3ac40 /script | |
| parent | b24fd90fe8a3433333646f61be6ca882b55d1155 (diff) | |
| download | opencode-bf463aee04bee55a1bf616be1ab1d14ed48f105f.tar.gz opencode-bf463aee04bee55a1bf616be1ab1d14ed48f105f.zip | |
feat(release): add highlights template to draft releases (#10745)
Diffstat (limited to 'script')
| -rwxr-xr-x | script/publish-start.ts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/script/publish-start.ts b/script/publish-start.ts index 5d1b2fb6a..644790f9d 100755 --- a/script/publish-start.ts +++ b/script/publish-start.ts @@ -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( |
