analyzer

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package analyzer provides different commit analyzer

Package analyzer provides different commit analyzer

Package analyzer provides different commit analyzer

Index

Constants

View Source
const ANGULAR = "angular"

ANGULAR identifier

View Source
const CONVENTIONAL = "conventional"

CONVENTIONAL identifier

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	ChangelogConfig config.ChangelogConfig
	AnalyzerConfig  config.AnalyzerConfig
	// contains filtered or unexported fields
}

Analyzer struct

func New

func New(format string, analyzerConfig config.AnalyzerConfig, chglogConfig config.ChangelogConfig) (*Analyzer, error)

New Analyzer struct for given commit format

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(commits []shared.Commit) map[shared.Release][]shared.AnalyzedCommit

Analyze commits and return commits split by major,minor,patch

func (*Analyzer) GetRules

func (a *Analyzer) GetRules() []Rule

GetRules from current mode

type Rule

type Rule struct {
	Tag       string
	TagString string
	Release   shared.Release
	Changelog bool
}

Rule for commits

Jump to

Keyboard shortcuts

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