maintenance

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: BSD-2-Clause Imports: 3 Imported by: ? 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

Overview

Package maintenance loads per-repo config from .maintenance.yaml on GitHub.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileContentFetcher

type FileContentFetcher interface {
	GetFileContent(ctx context.Context, owner, repo, path, ref string) ([]byte, error)
}

FileContentFetcher fetches raw file bytes from a GitHub repository. Matches the GetFileContent method signature on pkg.GitHubClient.

type GithubBuildConfig

type GithubBuildConfig struct {
	Assignee    string
	Status      string
	Phase       string
	IncludeLogs bool // include_logs: true enables the ## Error log snippet opt-in
}

GithubBuildConfig holds the watcher.github-build subtree of .maintenance.yaml. All fields are optional; empty string means "no override — use watcher default".

type Loader

type Loader interface {
	// LoadOverrides fetches .maintenance.yaml from the repo's default branch and
	// returns the watcher.github-build subtree. Never returns an error — all
	// failures are logged and result in an empty GithubBuildConfig (fall through
	// to watcher defaults). Empty string fields mean "no override".
	LoadOverrides(ctx context.Context, owner, repo, defaultBranch string) GithubBuildConfig
}

Loader fetches per-repo override config for the build watcher.

func NewLoader

func NewLoader(fetcher FileContentFetcher) Loader

NewLoader returns a Loader backed by the given FileContentFetcher.

Jump to

Keyboard shortcuts

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