gitlab

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package gitlab provides the GitLab CI plugin for TerraCi. It registers a pipeline generator and MR 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[*gitlabci.Config]
}

Plugin is the GitLab CI plugin.

func (*Plugin) BuildInitConfig

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

BuildInitConfig builds the GitLab CI init contribution.

func (*Plugin) CommitSHA added in v0.7.4

func (p *Plugin) CommitSHA() string

CommitSHA returns the GitLab CI commit SHA.

func (*Plugin) DetectEnv

func (p *Plugin) DetectEnv() bool

DetectEnv returns true if running in GitLab CI.

func (*Plugin) InitGroups added in v0.7.5

func (p *Plugin) InitGroups() []*initwiz.InitGroupSpec

InitGroups returns the init wizard group specs for GitLab CI.

func (*Plugin) NewCommentService

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

NewCommentService creates a new MR comment service.

func (*Plugin) NewGenerator

func (p *Plugin) NewGenerator(ctx *plugin.AppContext, depGraph *graph.DependencyGraph, modules []*discovery.Module) pipeline.Generator

NewGenerator creates a new GitLab CI pipeline generator.

func (*Plugin) PipelineID added in v0.7.4

func (p *Plugin) PipelineID() string

PipelineID returns the GitLab CI pipeline ID.

func (*Plugin) Preflight added in v0.9.0

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

Preflight detects MR context when running inside GitLab CI.

func (*Plugin) ProviderName

func (p *Plugin) ProviderName() string

ProviderName returns the provider name.

func (*Plugin) SetAutoApprove added in v0.7.5

func (p *Plugin) SetAutoApprove(v bool)

SetAutoApprove sets auto-approve mode directly on the typed config.

func (*Plugin) SetPlanOnly added in v0.7.5

func (p *Plugin) SetPlanOnly(v bool)

SetPlanOnly sets plan-only mode directly on the typed config.

Directories

Path Synopsis
Package gitlabci provides GitLab API client for MR integration
Package gitlabci provides GitLab API client for MR integration

Jump to

Keyboard shortcuts

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