check

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConventionalCommitTitles = []string{"feat", "fix", "perf", "refactor", "docs", "test", "revert", "style", "chore"}
)

Functions

func IsCommitSemantic

func IsCommitSemantic(commitMessage string) bool

IsCommitSemantic checks whether the commit message follow the conventions set out in Conventional Commits

Types

type Options

type Options struct {
	options.BaseOptions

	ScmFactory    scmhelpers.Options
	GitClient     gitclient.Interface
	CommandRunner cmdrunner.CommandRunner

	Namespace       string
	LatestCommitSha string
	CurrentRevSha   string
	RepoDir         string
}

Options contains the command line flags

func NewCmdCheckSemantics

func NewCmdCheckSemantics() (*cobra.Command, *Options)

func (*Options) Run

func (o *Options) Run() error

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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