controller

package
v0.26.0 Latest Latest
Warning

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

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

Documentation

Overview

Package controller reconciles finished review PipelineRuns and publishes their results as pull request comments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PipelineRunReconciler

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

PipelineRunReconciler publishes finished review PipelineRun results to pull requests.

func NewPipelineRunReconciler

func NewPipelineRunReconciler(
	client ctrlClient.Client,
	reader ctrlClient.Reader,
	logCollector *collector.Collector,
	commentFormatter *formatter.Formatter,
	newProvider ProviderFactory,
	config *reporter.Config,
) *PipelineRunReconciler

NewPipelineRunReconciler creates the reconciler.

func (*PipelineRunReconciler) Reconcile

func (r *PipelineRunReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile publishes the PipelineRun result to its pull request exactly once.

func (*PipelineRunReconciler) SetupWithManager

func (r *PipelineRunReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers the reconciler for finished review PipelineRuns.

type ProviderFactory

type ProviderFactory func(gitProvider, host, token string) (types.Provider, error)

ProviderFactory builds a git provider client; injectable for tests.

Jump to

Keyboard shortcuts

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