analyzer

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterCommits added in v0.8.1

func FilterCommits(commits []string, config *CommitFilterConfig) []string

FilterCommits filters out commits based on author and message patterns. This should be called before CategorizeCommits.

Types

type Commit added in v0.8.1

type Commit struct {
	Message string
	Author  string
}

Commit represents a git commit with metadata

type CommitCategories

type CommitCategories struct {
	Features []string
	Fixes    []string
	Docs     []string
	Chores   []string
	Changes  []string
	Breaking []string
}

CommitCategories holds categorized commit messages.

func CategorizeCommits

func CategorizeCommits(commits []string) CommitCategories

CategorizeCommits categorizes commit messages based on conventional commit format.

func (*CommitCategories) CountTotal

func (c *CommitCategories) CountTotal() int

CountTotal returns the total number of commits across all categories.

type CommitFilterConfig added in v0.8.1

type CommitFilterConfig struct {
	ExcludeAuthors  []string
	ExcludePatterns []string
}

CommitFilterConfig holds filtering rules for commits

Jump to

Keyboard shortcuts

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