theme

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package theme uses AI to group commits into thematic sections instead of conventional commit types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Markdown

func Markdown(tr ThemedReport) ([]byte, error)

Types

type Options

type Options struct {
	MinThemes        int
	MaxThemes        int
	IncludeNarrative bool
}

type ThemeGroup

type ThemeGroup struct {
	Title     string
	Narrative string
	Items     []render.Item
}

type ThemedReport

type ThemedReport struct {
	Version           string
	Date              string
	Breaking          []render.Item
	Themes            []ThemeGroup
	CompareURL        string
	ShowAuthor        bool
	Emojis            bool
	CommitURLTemplate string
	IssueURLTemplate  string
	Repo              string
}

func GroupCommits

func GroupCommits(ctx context.Context, report render.Report, aiClient ai.Client, opts Options) (ThemedReport, error)

Jump to

Keyboard shortcuts

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