batchci

package
v8.166.0-rc.40 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package batchci applies the repository-owned, staged batch-CI policy to generated workflows. Repositories without the policy retain byte-identical output.

Index

Constants

View Source
const ConfigPath = ".devctl/ci-batch.yaml"
View Source
const GateName = "batch-ci"

Variables

This section is empty.

Functions

func Apply

func Apply(path string, content []byte, c *Config) ([]byte, error)

func Gate

func Gate(c *Config) ([]byte, error)

func Root

func Root(path string) string

Root locates the owning checkout even for gen precommit --dir outputs.

Types

type Config

type Config struct {
	Mode       string   `yaml:"mode"`
	BaseBranch string   `yaml:"baseBranch"`
	GateAppID  int64    `yaml:"gateAppID"`
	Results    []Result `yaml:"results"`
}

func Parse

func Parse(data []byte) (*Config, error)

func Read

func Read(root string) (*Config, error)

type Result

type Result struct {
	Name      string `yaml:"name" json:"name"`
	AppID     int64  `yaml:"appID,omitempty" json:"appID,omitempty"`
	Workflow  string `yaml:"workflow,omitempty" json:"workflow,omitempty"`
	CreatorID int64  `yaml:"creatorID,omitempty" json:"creatorID,omitempty"`
}

Result identifies both a check and its trusted producer. Actions checks also name their workflow, so a result from an older suite cannot mask a new run.

Jump to

Keyboard shortcuts

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