config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config handles loading and validation of user configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GitLab GitLabConfig `yaml:"gitlab"`
	GitHub GitHubConfig `yaml:"github"`
}

Config represents the complete configuration for auto-mr.

func Load

func Load() (*Config, error)

Load reads and parses the configuration file from the user's home directory.

func (*Config) Validate

func (c *Config) Validate() error

Validate checks that all required configuration fields are set.

type GitHubConfig

type GitHubConfig struct {
	Assignee string `yaml:"assignee"`
	Reviewer string `yaml:"reviewer"`
}

GitHubConfig contains GitHub-specific configuration.

type GitLabConfig

type GitLabConfig struct {
	Assignee string `yaml:"assignee"`
	Reviewer string `yaml:"reviewer"`
}

GitLabConfig contains GitLab-specific configuration.

Jump to

Keyboard shortcuts

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