pac

package
v0.0.0-...-183162e Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCancelCommentForLatestPipelineRunOnTag

func AddCancelCommentForLatestPipelineRunOnTag(tag string)

func AddComment

func AddComment(comment string)

adds a comment to the specified merge request.

func AddCommitCommentOnTag

func AddCommitCommentOnTag(comment, tag string)

func AddLabel

func AddLabel(label, color, description string)

func AddTestCommentForLatestPipelineRunOnTag

func AddTestCommentForLatestPipelineRunOnTag(tag string)

func AssertPACInfoInstall

func AssertPACInfoInstall()

func CleanupPAC

func CleanupPAC(c *clients.Clients, smeeDeploymentName, namespace string)

func CleanupPACGitHub

func CleanupPACGitHub(c *clients.Clients, smeeDeploymentName, namespace string)

func ConfigurePreviewChanges

func ConfigurePreviewChanges()

func ConfigurePreviewChangesGitHub

func ConfigurePreviewChangesGitHub()

func CreateTagOnBranch

func CreateTagOnBranch(tagName, branch string)

CreateTagOnBranch creates a Git tag on the specified branch in the current GitLab project.

func GeneratePipelineRunYaml

func GeneratePipelineRunYaml(eventType, branch string)

func GetPipelineName

func GetPipelineName(validateMR bool) (pipelineName string)

GetPipelineName gets the latest pipeline run

func GetPipelineNameFromMR

func GetPipelineNameFromMR() (pipelineName string)

func GetPushPipelineNameFromMain

func GetPushPipelineNameFromMain() (pipelineName string)

func InitGitHubClient

func InitGitHubClient() *github.Client

InitGitHubClient initializes a GitHub client for GitHub

func InitGitLabClient

func InitGitLabClient() *gitlab.Client

Initialize Gitlab Client

func SetGitHubClient

func SetGitHubClient(c *github.Client)

func SetGitLabClient

func SetGitLabClient(c *gitlab.Client)

func SetupGitHubProject

func SetupGitHubProject() *github.Repository

SetupGitHubProject creates a new GitHub repository

func SetupGitLabProject

func SetupGitLabProject() *gitlab.Project

func SetupSmeeDeployment

func SetupSmeeDeployment()

func TriggerPushOnForkMain

func TriggerPushOnForkMain()

func TriggerPushOnGitHubMain

func TriggerPushOnGitHubMain()

func UpdateAnnotation

func UpdateAnnotation(annotationKey, annotationValue string)

updateAnnotation updates the specified annotation in the pull-request.yaml file

func UpdatePushOnTargetBranch

func UpdatePushOnTargetBranch(target string)

UpdatePushOnTargetBranch updates the pipelinesascode.tekton.dev/on-target-branch

func WaitForNewPipelineRunName

func WaitForNewPipelineRunName(previousName string) string

func WaitForNewPipelineRunNameByEventType

func WaitForNewPipelineRunNameByEventType(previousName, eventType string) string

WaitForNewPipelineRunNameByEventType waits for a new PipelineRun with the given PaC event type

Types

This section is empty.

Jump to

Keyboard shortcuts

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