Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Release ¶
Release groups CI targets for the drafted-release-notes pipeline.
func (Release) SummarizeNotes ¶
SummarizeNotes rewrites a drafted GitHub release's skeleton body (see .github/auto-release.yml) as collapsible per-PR notes with condensed descriptions, so the release stays well under GitHub's 125,000-character limit on a repo that merges many pull requests between releases (see docs/fixes). With OPENAI_API_KEY the descriptions are summarized by the model; without it, CodeRabbit's summary or a truncated description stands in. Thin: reads the environment and builds the real HTTP client, then delegates to summarizeNotes, which holds the actual (tested) skip/success/warning logic.
Set RELEASE_NOTES_DRY_RUN=1 to print the summarized body to stdout instead of updating the release - the way to preview the result, or to verify the OpenAI key and model work, against a real draft without modifying it.