batchci

package
v8.172.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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