branch

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: 5 Imported by: 0

Documentation

Overview

Package branch provides the transport structures used to unmarshal the commit branch configuration from config files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Branch

type Branch struct {
	// Task stores the transport representation of the task identifier pattern.
	Task value.Pattern `yaml:"task,omitempty"`

	// Name stores the transport representation of the branch name pattern.
	Name value.Pattern `yaml:"name,omitempty"`
}

Branch is the transport representation of the commit branch config.

Branch pairs the task and branch-name patterns and converts them into the domain branch.Config consumed by the linter.

func (Branch) Config

func (b Branch) Config() branch.Config

Config converts the Branch into the domain branch.Config, wiring the task and name patterns into their respective nested configs.

Jump to

Keyboard shortcuts

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