controller

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

controller handles ordering, filtering, substitutions while running jobs for a given hook.

Index

Constants

This section is empty.

Variables

View Source
var ErrFailOnChanges = errors.New("files were modified by a hook, and fail_on_changes is enabled")

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(repo *git.Repository) *Controller

func (*Controller) RunHook

func (c *Controller) RunHook(ctx context.Context, opts Options, hook *config.Hook) ([]result.Result, error)

type Options

type Options struct {
	GitArgs       []string
	ExcludeFiles  []string
	Files         []string
	RunOnlyJobs   []string
	RunOnlyTags   []string
	SourceDirs    []string
	Templates     map[string]string
	GlobMatcher   string
	DisableTTY    bool
	FailOnChanges bool
	Force         bool
	SkipLFS       bool
	NoStageFixed  bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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