generic

package
v1.206.3-test.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package generic provides a fallback CI provider for when --ci flag is used but no specific CI platform is detected.

Index

Constants

View Source
const (
	// ProviderName is the name of the generic CI provider.
	ProviderName = "generic"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OutputWriter

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

OutputWriter writes CI outputs for the generic provider.

func (*OutputWriter) WriteOutput

func (w *OutputWriter) WriteOutput(key, value string) error

WriteOutput writes a key-value pair to CI outputs.

func (*OutputWriter) WriteSummary

func (w *OutputWriter) WriteSummary(content string) error

WriteSummary writes content to the job summary.

type Provider

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

Provider is a fallback CI provider for when --ci flag is used but no specific CI platform is detected. It writes summaries to stdout and outputs to environment file or stdout.

func NewProvider

func NewProvider() *Provider

NewProvider creates a new generic CI provider. It checks for ATMOS_CI_OUTPUT and ATMOS_CI_SUMMARY environment variables to determine where to write outputs.

func (*Provider) Context

func (p *Provider) Context() (*provider.Context, error)

Context returns CI metadata from environment variables.

func (*Provider) CreateCheckRun

func (p *Provider) CreateCheckRun(_ context.Context, opts *provider.CreateCheckRunOptions) (*provider.CheckRun, error)

CreateCheckRun writes check run status to stderr and returns a synthetic CheckRun.

func (*Provider) Detect

func (p *Provider) Detect() bool

Detect returns false - this provider is never auto-detected. It's only used when CI mode is forced via --ci flag.

func (*Provider) GetStatus

GetStatus is not supported by the generic provider.

func (*Provider) Name

func (p *Provider) Name() string

Name returns the provider name.

func (*Provider) OutputWriter

func (p *Provider) OutputWriter() provider.OutputWriter

OutputWriter returns an OutputWriter for the generic provider.

func (*Provider) UpdateCheckRun

func (p *Provider) UpdateCheckRun(_ context.Context, opts *provider.UpdateCheckRunOptions) (*provider.CheckRun, error)

UpdateCheckRun writes check run status to stderr and returns an updated CheckRun.

Jump to

Keyboard shortcuts

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