commit_msg

package
v0.0.219 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 19 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(dir string, options GenerateOptions) (string, error)

func RunGenCommitMsg

func RunGenCommitMsg(args []string) error

Types

type CommitMsg added in v0.0.9

type CommitMsg struct {
	Title       string `json:"title"`
	Description string `json:"description"`
}

func SanitizeOrError added in v0.0.63

func SanitizeOrError(raw string) (CommitMsg, error)

SanitizeOrError runs Sanitize and returns an error when the message is rejected.

type GenerateOptions

type GenerateOptions struct {
	Model             string
	AgentRunner       string
	AgentRunnerBinary string
	AgentEnv          map[string]string
	Logger            Logger
}

type Logger

type Logger interface {
	Log(msg string)
	Error(msg string)
}

type SanitizeResult added in v0.0.63

type SanitizeResult struct {
	Msg      CommitMsg
	Changes  []string
	Rejected bool
	Reason   string
}

SanitizeResult is the structured outcome of post-parse commit message sanitization.

func Sanitize added in v0.0.63

func Sanitize(raw string) SanitizeResult

Sanitize applies post-parse anti-pattern cleanup to agent commit-message text. On success returns a usable CommitMsg. On unusable garbage returns Rejected=true.

Jump to

Keyboard shortcuts

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