mandate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package mandate configures the set of commit types for which the commit message body is mandatory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config describes the set of commit types for which the commit message body is mandatory.

func NewConfig

func NewConfig(opts ...Option) Config

NewConfig creates a new mandate config with the provided functional options.

func (Config) For

func (c Config) For(typ commit.Type) bool

For reports whether the commit message body is mandatory for the provided commit type.

type Option

type Option func(*Config)

Option is a functional option that modifies the mandate config on its creation.

func WithTypes

func WithTypes(types value.Strings) Option

WithTypes sets the commit types config for the commit config.

Jump to

Keyboard shortcuts

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