release

package
v1.232.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Release

type Release mg.Namespace

Release groups CI targets for the drafted-release-notes pipeline.

func (Release) SummarizeNotes

func (Release) SummarizeNotes(repo, releaseID string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL