Documentation
¶
Index ¶
- type Commit
- func (g *Commit) ClearManualMessage()
- func (g *Commit) Generate(ctx context.Context) (string, error)
- func (g *Commit) GetFilesToUpdate() ([]string, error)
- func (g *Commit) GetWorkflowState(ctx context.Context) (*WorkflowState, error)
- func (g *Commit) SetManualMessage(message string)
- func (g *Commit) ValidateCommitMessage(message string) CommitValidationResult
- type CommitValidationResult
- type WorkflowState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct {
// contains filtered or unexported fields
}
Commit manages commit message generation
func NewGenerator ¶
NewGenerator creates a new commit message generator
func (*Commit) ClearManualMessage ¶
func (g *Commit) ClearManualMessage()
func (*Commit) GetFilesToUpdate ¶
GetFilesToUpdate returns paths of files that will be updated/committed
func (*Commit) GetWorkflowState ¶
func (g *Commit) GetWorkflowState(ctx context.Context) (*WorkflowState, error)
GetWorkflowState provides the current state of the commit workflow
func (*Commit) SetManualMessage ¶
func (*Commit) ValidateCommitMessage ¶
func (g *Commit) ValidateCommitMessage(message string) CommitValidationResult
ValidateCommitMessage handles all commit message validation with detailed feedback
type CommitValidationResult ¶
CommitValidationResult holds the validation state and any error message
type WorkflowState ¶
type WorkflowState struct { Message string // Generated commit message Files []string // Files to be committed HasChanges bool // Whether there are changes to commit IsMessageValid bool // Whether the generated message is valid RetryCount int // Number of generation retries LastError string // Last error encountered CanCommit bool // Whether commit is possible ManuallyEdited bool // Whether message was manually edited }
WorkflowState represents the current state of commit generation
Click to show internal directories.
Click to hide internal directories.