defaults

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Default

type Default struct {
	// Name stores the transport representation
	// of the default branch name, for example "master".
	Name string `yaml:"name,omitempty"`
}

Default is the transport representation of the default branch config, describing the branch that the linter treats as the main branch of the repository.

func (Default) Config

func (d Default) Config() defaults.Config

Config converts the transport representation into the domain defaults config, wiring the default branch name into it.

Jump to

Keyboard shortcuts

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