branch

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Overview

Package branch provides types and functions for working with commit branch configuration.

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 represents configuration for commit branch behavior.

func NewConfig

func NewConfig(opts ...Option) Config

NewConfig creates a new Config instance with provided functional options to customize the configuration.

func (Config) Default added in v0.1.1

func (c Config) Default() defaults.Config

Default returns the configuration for the default branch.

func (Config) Name

func (c Config) Name() name.Config

Name returns the configuration for branch naming rules.

func (Config) Task

func (c Config) Task() task.Config

Task returns the configuration for task integration.

type Option

type Option func(*Config)

Option configures a Config instance.

func WithDefault added in v0.1.1

func WithDefault(def defaults.Config) Option

WithDefault sets the default branch configuration.

func WithName

func WithName(name name.Config) Option

WithName sets the branch name configuration.

func WithTask

func WithTask(tkt task.Config) Option

WithTask sets the task integration configuration.

Directories

Path Synopsis
Package defaults provides types and functions to work with configuration of the default branch.
Package defaults provides types and functions to work with configuration of the default branch.
Package name provides types and functionality to work with configuration of branch names.
Package name provides types and functionality to work with configuration of branch names.

Jump to

Keyboard shortcuts

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