claim

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(f *cmdutil.Factory) *cli.Command

NewCmd constructs the unified "claim" command that takes a required positional argument: either an issue ID or the literal word "ready" (case-insensitive).

func RunClaimByID

func RunClaimByID(ctx context.Context, input RunClaimByIDInput) error

RunClaimByID executes the claim-by-ID workflow: claims the specified issue and writes the result to the output writer.

func RunClaimReady

func RunClaimReady(ctx context.Context, input RunClaimReadyInput) error

RunClaimReady executes the claim-ready workflow: finds and claims the highest-priority ready issue matching the given filters.

Types

type RunClaimByIDInput

type RunClaimByIDInput struct {
	Service      driving.Service
	IssueID      string
	Author       string
	Duration     time.Duration
	StaleAt      time.Time
	LabelFilters []driving.LabelFilterInput
	Role         string
	JSON         bool
	WriteTo      io.Writer
}

RunClaimByIDInput holds the parameters for claiming an issue by ID, decoupled from CLI flag parsing so it can be tested directly.

type RunClaimReadyInput

type RunClaimReadyInput struct {
	Service      driving.Service
	Author       string
	Role         string
	LabelFilters []driving.LabelFilterInput
	Duration     time.Duration
	StaleAt      time.Time
	JSON         bool
	WriteTo      io.Writer
}

RunClaimReadyInput holds the parameters for claiming the next ready issue, decoupled from CLI flag parsing so it can be tested directly.

Jump to

Keyboard shortcuts

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