events

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MPL-2.0 Imports: 24 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 {
	// contains filtered or unexported fields
}

func NewCheckEvent

func NewCheckEvent(pullRequest vcs.PullRequest, ctr container.Container, repoManager repoManager, processors []checks.ProcessorEntry) *CheckEvent

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) GenerateListOfAffectedApps

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

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

func (*CheckEvent) Process added in v1.5.0

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

func (*CheckEvent) UpdateListOfChangedFiles added in v1.5.0

func (ce *CheckEvent) UpdateListOfChangedFiles(ctx context.Context, repo *git.Repo) error

type Runner added in v1.5.0

type Runner struct {
	checks.Request
	// contains filtered or unexported fields
}

func (*Runner) Run added in v1.5.0

func (r *Runner) Run(ctx context.Context, desc string, fn checkFunction, worstState pkg.CommitState)

func (*Runner) Wait added in v1.5.0

func (r *Runner) Wait()

Jump to

Keyboard shortcuts

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