action

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 13 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"`
	} `fig:"units"`
}

type Input added in v0.0.7

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

	BenchmarksFilepath string
	BranchStorage      string
}

Jump to

Keyboard shortcuts

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