releasenotes

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(commits []GitCommit, maxChars int) string

Format converts commits into a bullet-point release notes string. Truncates to maxChars (Google Play limit is 500 chars). Truncation removes whole lines to avoid cutting mid-sentence, and appends "..." if any lines were dropped.

Types

type GitCommit

type GitCommit struct {
	Hash    string `json:"hash"`
	Subject string `json:"subject"`
}

GitCommit represents a single git commit.

func GitLog

func GitLog(ctx context.Context, sinceRef, untilRef string) ([]GitCommit, error)

GitLog runs `git log --no-merges --format="%h%x00%s"` between refs and returns commits. sinceRef is the starting ref (exclusive), untilRef is the ending ref (inclusive).

Jump to

Keyboard shortcuts

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