analyzer

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package analyzer provides different commit analyzer

Package analyzer provides different commit analyzer

Index

Constants

View Source
const ANGULAR = "angular"

ANGULAR identifer

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

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

Analyzer struct

func New

func New(format string, config 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 splitted 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