config

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteExample

func WriteExample(path string, force bool) error

Types

type File

type File struct {
	DefaultTarget string   `yaml:"default_target,omitempty"`
	DefaultLabels []string `yaml:"default_labels,omitempty"`
	// AgentReadyLabel names the label the discovery skill puts on work items it judges an agent
	// can finish without human help. Empty turns the marking off.
	AgentReadyLabel string            `yaml:"agent_ready_label,omitempty"`
	Targets         map[string]Target `yaml:"targets"`
}

func Load

func Load(path string) (*File, error)

func (*File) ResolveTarget added in v0.16.1

func (f *File) ResolveTarget(explicit string) (string, Target, error)

ResolveTarget selects a publication target using an explicit name, the configured default, or the sole configured target, in that order.

type GitHubTarget

type GitHubTarget struct {
	Owner             string                     `yaml:"owner" json:"owner"`
	Repository        string                     `yaml:"repository" json:"repository"`
	APIURL            string                     `yaml:"api_url,omitempty" json:"api_url,omitempty"`
	KindLabels        map[domain.ItemKind]string `yaml:"kind_labels,omitempty" json:"kind_labels,omitempty"`
	HierarchyFallback string                     `yaml:"hierarchy_fallback,omitempty" json:"hierarchy_fallback,omitempty"`
}

type JiraTarget

type JiraTarget struct {
	BaseURL     string                     `yaml:"base_url" json:"base_url"`
	ProjectKey  string                     `yaml:"project_key" json:"project_key"`
	KindMapping map[domain.ItemKind]string `yaml:"kind_mapping" json:"kind_mapping"`
	// LinkType names the Jira issue link type used for depends_on edges. Defaults to Blocks.
	LinkType          string `yaml:"link_type,omitempty" json:"link_type,omitempty"`
	HierarchyFallback string `yaml:"hierarchy_fallback,omitempty" json:"hierarchy_fallback,omitempty"`
}

type Target

type Target struct {
	Provider string        `yaml:"provider" json:"provider"`
	Jira     *JiraTarget   `yaml:"jira,omitempty" json:"jira,omitempty"`
	GitHub   *GitHubTarget `yaml:"github,omitempty" json:"github,omitempty"`
}

func (Target) Validate

func (t Target) Validate() error

Jump to

Keyboard shortcuts

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