config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Themes  []Theme `yaml:"themes"`
	Metrics Metrics `yaml:"metrics"`
}

Config represents the global configuration for gh-brag.

func LoadConfig

func LoadConfig(path string) (*Config, error)

LoadConfig loads the configuration. It starts with embedded defaults and overlays them with the provided YAML file if it exists.

type Metrics

type Metrics struct {
	OwnershipThreshold int                          `yaml:"ownership_threshold"`
	ActionWeights      map[data.EventAction]float64 `yaml:"action_weights"`
	ThemeWeights       map[string]float64           `yaml:"theme_weights"`
}

Metrics defines the metrics configuration.

type Theme

type Theme struct {
	Name     string   `yaml:"name"`
	Keywords []string `yaml:"keywords"`
}

Theme defines a category and its associated keywords.

Jump to

Keyboard shortcuts

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