github

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 12 Imported by: ? modules, 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 github provides the GitHub Actions plugin for TerraCi. It registers a pipeline generator and PR comment service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	plugin.BasePlugin[*configpkg.Config]
}

Plugin is the GitHub Actions plugin.

func (*Plugin) BuildInitConfig

func (p *Plugin) BuildInitConfig(state *initwiz.StateMap) (*initwiz.InitContribution, error)

BuildInitConfig builds the GitHub Actions init contribution.

func (*Plugin) CommitSHA added in v0.7.4

func (p *Plugin) CommitSHA() string

CommitSHA returns the GitHub Actions commit SHA.

func (*Plugin) DetectEnv

func (p *Plugin) DetectEnv() bool

DetectEnv returns true if running in GitHub Actions.

func (*Plugin) InitGroups added in v0.7.5

func (p *Plugin) InitGroups() ([]initwiz.InitGroup, error)

InitGroups returns the init wizard group specs for GitHub Actions.

func (*Plugin) NewCommentService

func (p *Plugin) NewCommentService(_ *plugin.AppContext) ci.CommentService

NewCommentService creates a new PR comment service.

func (*Plugin) NewGenerator

func (p *Plugin) NewGenerator(ir *pipeline.IR) (pipeline.Generator, error)

NewGenerator creates a new GitHub Actions pipeline generator bound to the pre-built IR.

func (*Plugin) PipelineID added in v0.7.4

func (p *Plugin) PipelineID() string

PipelineID returns the GitHub Actions run ID.

func (*Plugin) Preflight added in v0.9.0

func (p *Plugin) Preflight(_ context.Context, _ *plugin.AppContext) error

Preflight validates the loaded plugin config and detects PR context when running inside GitHub Actions. Validation runs before the env-detection branch so misshapen configs fail fast even on local generate runs.

func (*Plugin) ProviderName

func (p *Plugin) ProviderName() string

ProviderName returns the provider name.

Directories

Path Synopsis
internal
pr

Jump to

Keyboard shortcuts

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