check

package
v0.1.31 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func IsCommitConventional added in v0.1.4

func IsCommitConventional(commitMessage string) bool

IsCommitConventional checks whether a commit message follows the conventions by comparing its prefix to those in ConventionalCommitTypes

Types

type Options

type Options struct {
	options.BaseOptions

	ScmFactory    scmhelpers.Options
	GitClient     gitclient.Interface
	CommandRunner cmdrunner.CommandRunner
	// contains filtered or unexported fields
}

Options contains the command line flags

func NewCmdCheckSemantics

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

NewCmdCheckSemantics creates a command object for the command

func (*Options) Run

func (o *Options) Run() error

func (*Options) Validate

func (o *Options) Validate() error

Validate checks that all the variables required to run are present

Jump to

Keyboard shortcuts

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