Versions in this module Expand all Collapse all v0 v0.3.2 Mar 16, 2026 v0.3.1 Mar 13, 2026 v0.3.0 Mar 13, 2026 Changes in this version + func BranchFromRefspec(refspec string) string + type Backend interface + Execute func(ctx context.Context, plan *Plan, conventional bool) (*Result, error) + type DryRunBackend struct + RootDir string + func (d *DryRunBackend) Execute(_ context.Context, plan *Plan, conventional bool) (*Result, error) + type FileChange struct + Deleted bool + Path string + type ForgeBackend struct + Branch string + ForgeClient forge.Forge + RootDir string + func (f *ForgeBackend) Execute(ctx context.Context, plan *Plan, conventional bool) (*Result, error) + type GitBackend struct + RootDir string + func (g *GitBackend) Execute(_ context.Context, plan *Plan, conventional bool) (*Result, error) + type Plan struct + Body string + Breaking bool + Paths []string + Push PushOptions + Scope string + SignOff bool + SkipCI bool + StageMode StageMode + Summary string + Type string + func BuildPlan(opts PlannerOptions, cfg config.CommitConfig, registry *TypeRegistry, ...) (*Plan, error) + func (p Plan) Message(conventional bool) string + func (p Plan) Subject(conventional bool) string + type PlannerOptions struct + All bool + Body string + Breaking bool + Message string + Paths []string + Push *bool + Refspec string + Remote string + Scope string + SignOff bool + SkipCI *bool + Type string + type PushOptions struct + Enabled bool + Refspec string + Remote string + type Result struct + Backend string + Files []string + Message string + NoOp bool + Pushed bool + SHA string + type StageMode string + const StageAll + const StageExplicit + const StageStaged + type TypeRegistry struct + func NewTypeRegistry(types []config.CommitType) *TypeRegistry + func (r *TypeRegistry) List() []config.CommitType + func (r *TypeRegistry) Resolve(key string) (resolvedKey string, forceBang bool, err error) + func (r *TypeRegistry) Valid(key string) bool