action

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChronosMergedFilename   = ".chronos"
	ActionSaveCommitMessage = "[chronos] `save` (%s)"
)
View Source
const (
	ActionPublishCommitMessage = "[chronos] `publish` (%s)"
)

Variables

This section is empty.

Functions

func Publish

func Publish(ctx context.Context, r gitops.Repository, cfg Config, input Input) error

func Save

func Save(ctx context.Context, r gitops.Repository, cfg Config, input Input) error

func Summarize

func Summarize(ctx context.Context, r gitops.Repository, cfg Config, input Input) error

Types

type Config added in v0.0.7

type Config struct {
	GithubPages struct {
		Branch    string `fig:"branch" default:"gh-pages"`
		Directory string `fig:"directory" default:"chronos"`
	} `fig:"github-pages"`

	Storage struct {
		// Capacity specifies how many latests measurements
		// (or commits) for one individual series will be preserved.
		Capacity int `fig:"capacity" default:"25"`
	} `fig:"storage"`

	Units []struct {
		// Name stands for metric's name.
		// For example `ns/op`, `B/op` and others.
		Name string `fig:"name" validate:"required"`
		// Better must be one of `higher` or `lower`.
		Better string `fig:"better" validate:"required"`
		// Threshold is a value in (0; 1).
		Threshold float64 `fig:"threshold" default:"0.05"`
		// Reduction is a function which takes a vector as an input
		// and returns scalar value. It must be one of 'min', 'max', 'median', 'mean'.
		Reduction string `fig:"reduction" default:"mean"`
	} `fig:"units"`
}

type Input added in v0.0.7

type Input struct {
	Token      string
	Owner      string
	Repository string
	CommitHash string

	LanguageTool string

	BenchmarksFilepath string
	BranchStorage      string

	EventName string
	PRNumber  int
}

Jump to

Keyboard shortcuts

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