package
Version:
v0.2.2
Opens a new window with list of versions in this module.
Published: Mar 3, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Themes []Theme `yaml:"themes"`
Metrics Metrics `yaml:"metrics"`
}
Config represents the global configuration for gh-brag.
LoadConfig loads the configuration. It starts with embedded defaults
and overlays them with the provided YAML file if it exists.
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 struct {
Name string `yaml:"name"`
Keywords []string `yaml:"keywords"`
}
Theme defines a category and its associated keywords.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.