config

package
v0.0.0-...-ea7ac38 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignerConfig

type AssignerConfig struct {
	IssuesAssignerConfig       `yaml:"issues"`
	PullRequestsAssignerConfig `yaml:"pull-requests"`
}

AssignerConfig is the struct to hold user configuration for the assigner

type Config

type Config struct {
	LabelerConfig  `yaml:"labeler"`
	AssignerConfig `yaml:"assigner"`
}

Config is the struct to hold user configuration

func Load

func Load(configRaw *[]byte) (*Config, error)

Load loads config data from raw format to a Config struct

type IssuesAssignerConfig

type IssuesAssignerConfig struct {
	IssuesAssignerProjectConfig `yaml:"project"`
	Actions                     slices.StringSlice
}

IssuesAssignerConfig is the struct to hold user configuration related to issues labeler

type IssuesAssignerProjectConfig

type IssuesAssignerProjectConfig struct {
	ProjectURL string `yaml:"url"`
	Column     string `yaml:"column"`
}

IssuesAssignerProjectConfig is the struct to hold user configuration related to issues labeler

type IssuesLabelerConfig

type IssuesLabelerConfig struct {
	Labels     slices.StringSlice
	Actions    slices.StringSlice
	OneOfaKind `yaml:"at-least-one"`
}

IssuesLabelerConfig is the struct to hold user configuration related to issues labeler

type LabelerConfig

type LabelerConfig struct {
	IssuesLabelerConfig       `yaml:"issues"`
	PullRequestsLabelerConfig `yaml:"pull-requests"`
}

LabelerConfig is the struct to hold user configuration for the labeler

type OneOfaKind

type OneOfaKind struct {
	PossibleLabels slices.StringSlice `yaml:"labels"`
	Default        string
}

OneOfaKind is the struct to hold user configuration related to the feature of checking the existence of at least one label of a group and if it doesn't exist then add a default label

type PullRequestsAssignerConfig

type PullRequestsAssignerConfig struct {
	Assignee PullRequestsAutoAssigneeConfig `yaml:"assignee"`
	Actions  slices.StringSlice
}

PullRequestsAssignerConfig is the struct to hold user configuration related to issues labeler

type PullRequestsAutoAssigneeConfig

type PullRequestsAutoAssigneeConfig struct {
	Auto bool `yaml:"auto"`
}

PullRequestsAutoAssigneeConfig is the struct to hold user configuration related to issues labeler

type PullRequestsLabelerConfig

type PullRequestsLabelerConfig struct {
	Labels  slices.StringSlice
	Actions slices.StringSlice
}

PullRequestsLabelerConfig is the struct to hold user configuration related to pull-requests labeler

Jump to

Keyboard shortcuts

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