app

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Conf *owners.Config
	// contains filtered or unexported fields
}

App represents the application with its dependencies

func New

func New(cfg Config) (*App, error)

New creates a new App instance with the given configuration

func (*App) Run

func (a *App) Run() (*OutputData, error)

Run executes the application logic

type Config

type Config struct {
	Token         string
	RepoDir       string
	PR            int
	Repo          string
	Verbose       bool
	Quiet         bool
	InfoBuffer    io.Writer
	WarningBuffer io.Writer
}

Config holds the application configuration

type OutputData added in v1.1.0

type OutputData struct {
	FileOwners    map[string][]string `json:"file_owners"`
	FileOptional  map[string][]string `json:"file_optional"`
	UnownedFiles  []string            `json:"unowned_files"`
	StillRequired []string            `json:"still_required"`
	Success       bool                `json:"success"`
	Message       string              `json:"message"`
}

OutputData holds the data that will be written to GITHUB_OUTPUT

func NewOutputData added in v1.1.1

func NewOutputData(co codeowners.CodeOwners) *OutputData

func (*OutputData) UpdateOutputData added in v1.1.1

func (od *OutputData) UpdateOutputData(success bool, message string, stillRequired []string)

Jump to

Keyboard shortcuts

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