labeler

package
v0.2.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute parses CLI arguments and runs the command. This is called by main.main(). It only needs to happen once.

Types

type CLI added in v0.2.0

type CLI struct {
	Owner      string           `short:"o" env:"GITHUB_ACTOR" help:"GitHub Owner/Org name [GITHUB_ACTOR]"`
	Repo       string           `short:"r" env:"GITHUB_REPO" help:"GitHub Repo name [GITHUB_REPO]"`
	Type       string           `short:"t" env:"GITHUB_EVENT_NAME" help:"The target event type to label (issues or pull_request) [GITHUB_EVENT_NAME]"`
	Fields     []string         `default:"title,body" help:"Fields to evaluate for labeling (title, body)"`
	ID         int              `help:"The integer id of the issue or pull request"`
	Data       string           `help:"A JSON string of the 'event' type (issue event or pull request event)"`
	ConfigPath string           `name:"config-path" help:"A custom config path, relative to the repository root"`
	Version    kong.VersionFlag `short:"v" help:"Print version information"`
}

func (*CLI) Run added in v0.2.0

func (c *CLI) Run() error

Jump to

Keyboard shortcuts

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