Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶ added in v0.0.15
ConfigPath returns the expected check config file path for a repo.
func FailedStepName ¶
func FailedStepName(results []StepResult) string
FailedStepName returns the first step that failed (not skipped).
func FormatFailureSummary ¶
func FormatFailureSummary(results []StepResult, runErr error) string
FormatFailureSummary builds a readable failure summary for CLI output.
func InitConfigTemplate ¶
InitConfigTemplate writes `.fastgit/check.yaml` when missing.
Types ¶
type Config ¶
type Config struct {
Steps []Step
}
Config holds check pipeline configuration.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the built-in pipeline for Go projects.
func ForCommit ¶ added in v0.0.14
ForCommit returns a lighter pipeline for the commit flow (skips test step).
func LoadConfig ¶
LoadConfig loads `.fastgit/check.yaml`. Returns nil Config if the file does not exist.
type RunOptions ¶
RunOptions controls check execution.
type Step ¶
type Step struct {
Name string
Command string
FixCommand string
Fixable bool
Optional bool
Description string
}
Step defines one quality gate step.
type StepResult ¶
StepResult holds the outcome of one step.
func Run ¶
func Run(ctx context.Context, cfg Config, opts RunOptions) ([]StepResult, error)
Run executes the check pipeline.