commitgateop

package
v0.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package commitgateop owns staged commit-message policy and stale-merge authorization sequencing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizationDiagnostic

func AuthorizationDiagnostic(result currentstatecoord.CommitAuthorizationResult) (presentation.Diagnostic, error)

AuthorizationDiagnostic maps a completed coordinator result to command output.

func IsExemptSubject

func IsExemptSubject(subject string) bool

IsExemptSubject reports whether Git itself generates the subject.

Types

type Dependencies

Dependencies are the operation-specific seams used to prove mechanism failures.

type Result

type Result struct {
	Document      presentation.Document
	HasDocument   bool
	Authorization bool
}

Result carries an optional owner-produced diagnostic alongside the operation error.

func RunWithDependencies

func RunWithDependencies(ctx context.Context, root string, cfg *config.Config, repo *git.Repo, raw []byte, dependencies Dependencies) (Result, error)

RunWithDependencies applies the operation with explicit bounded mechanism seams.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL