labelsync

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelSync

func LabelSync()

Types

type LabelSyncConfig

type LabelSyncConfig struct {
	Overwrite  bool `yaml:"overwrite"`
	Prune      bool `yaml:"prune"` // Prune deletes labels not in the labels.yml file
	DryRun     bool `yaml:"dry_run"`
	Categories []struct {
		Name          string `yaml:"name"`
		CategoryColor string `yaml:"category_color,omitempty"`
		Labels        []struct {
			Name        string  `yaml:"name"`
			Color       string  `yaml:"color,omitempty"`
			Description *string `yaml:"description,omitempty"`
		} `yaml:"labels"`
	} `yaml:"categories"`
	ExtraLabels []struct {
		Name        string  `yaml:"name"`
		Description *string `yaml:"description,omitempty"`
		Color       string  `yaml:"color"`
	} `yaml:"extra_labels"`
}

func GetLabelSyncConfig

func GetLabelSyncConfig(logger *slog.Logger) *LabelSyncConfig

Jump to

Keyboard shortcuts

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