events

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInFlight

func GetInFlight() int

Types

type CheckEvent

type CheckEvent struct {
	TempWorkingDir string // Location of the local repo
	// contains filtered or unexported fields
}

func NewCheckEvent

func NewCheckEvent(repo *repo.Repo, client pkg.Client, cfg *config.ServerConfig) *CheckEvent

func (*CheckEvent) Cleanup

func (ce *CheckEvent) Cleanup(ctx context.Context)

func (*CheckEvent) CloneRepoLocal

func (ce *CheckEvent) CloneRepoLocal(ctx context.Context) error

CloneRepoLocal takes the repo inside the Check Event and try to clone it locally

func (*CheckEvent) CommitStatus

func (ce *CheckEvent) CommitStatus(ctx context.Context, status pkg.CommitState)

CommitStatus sets the commit status on the MR To set the PR/MR status

func (*CheckEvent) CreateTempDir

func (ce *CheckEvent) CreateTempDir() error

func (*CheckEvent) GenerateListOfAffectedApps

func (ce *CheckEvent) GenerateListOfAffectedApps(ctx context.Context, targetBranch string) error

Walks the repo to find any apps or appsets impacted by the changes in the MR/PR.

func (*CheckEvent) GetListOfChangedFiles

func (ce *CheckEvent) GetListOfChangedFiles(ctx context.Context) ([]string, error)

func (*CheckEvent) InitializeGit

func (ce *CheckEvent) InitializeGit(ctx context.Context) error

InitializeGit sets the username and email for a git repo

func (*CheckEvent) MergeIntoTarget

func (ce *CheckEvent) MergeIntoTarget(ctx context.Context) error

MergeIntoTarget merges the changes from the MR/PR into the base branch

func (*CheckEvent) ProcessApps

func (ce *CheckEvent) ProcessApps(ctx context.Context)

Jump to

Keyboard shortcuts

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