config

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapTeamYAML

func BootstrapTeamYAML(path string, name string) error

Types

type AppConfig

type AppConfig struct {
	AppID      int64  `yaml:"app_id,omitempty"`
	PrivateKey string `yaml:"private_key,omitempty"`
	Org        string `yaml:"org"`

	DryWarnings struct {
		WarnUnmanagedTeams        bool `yaml:"warn_unmanaged_teams"`
		WarnMembersWithoutAnyTeam bool `yaml:"warn_members_without_any_team"`
	} `yaml:"dry_warnings"`
	RemoveMembersWithoutTeam bool   `yaml:"remove_members_without_team"`
	DeleteUnconfiguredTeams  bool   `yaml:"delete_unconfigured_teams"`
	CreateRepo               bool   `yaml:"create_repo"`
	AddRenovateConfig        bool   `yaml:"add_renovate_config"`
	RenovateConfig           string `yaml:"renovate_config"`
	AddDefaultReadme         bool   `yaml:"add_default_readme"`
}

type OrgConfig

type OrgConfig struct {
	Owners []string `yaml:"owners"`
}

type Root

type Root struct {
	App  AppConfig    `yaml:"app"`
	Org  OrgConfig    `yaml:"org"`
	Team []TeamConfig `yaml:"teams"`
}

func Load

func Load(dir string) (*Root, error)

type TeamConfig

type TeamConfig struct {
	Name        string   `yaml:"name"`
	Slug        string   `yaml:"slug,omitempty"`
	Description string   `yaml:"description,omitempty"`
	Privacy     string   `yaml:"privacy,omitempty"` // closed, secret
	Parents     []string `yaml:"parents,omitempty"`

	Maintainers []string `yaml:"maintainers,omitempty"`
	Members     []string `yaml:"members,omitempty"`

	// repo => permission (pull|triage|push|maintain|admin)
	Repositories map[string]string `yaml:"repositories,omitempty"`
}

Jump to

Keyboard shortcuts

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