Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmd ¶
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.