Documentation
¶
Overview ¶
Package done provides the "close" workflow shortcut — a combined close-with- reason command that adds a comment and then closes the issue in one step.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmd ¶
NewCmd constructs the "close" command, which adds a closing reason as a comment and then closes the issue. This is a workflow shortcut that combines "comment add" and "state close" into a single step.
Types ¶
type RunInput ¶
type RunInput struct {
Service driving.Service
IssueID string
ClaimID string
Reason string
JSON bool
WriteTo io.Writer
}
RunInput holds the parameters for the done command's core logic, decoupled from CLI flag parsing so it can be tested directly. The command delegates to CloseWithReason, which derives the author from the claim record and performs the comment + close atomically.
Click to show internal directories.
Click to hide internal directories.