Documentation ¶
Index ¶
- func GetInFlight() int
- type CheckEvent
- func (ce *CheckEvent) Cleanup(ctx context.Context)
- func (ce *CheckEvent) CloneRepoLocal(ctx context.Context) error
- func (ce *CheckEvent) CommitStatus(ctx context.Context, status pkg.CommitState)
- func (ce *CheckEvent) CreateTempDir() error
- func (ce *CheckEvent) GenerateListOfAffectedApps(ctx context.Context, targetBranch string) error
- func (ce *CheckEvent) GetListOfChangedFiles(ctx context.Context) ([]string, error)
- func (ce *CheckEvent) InitializeGit(ctx context.Context) error
- func (ce *CheckEvent) MergeIntoTarget(ctx context.Context) error
- func (ce *CheckEvent) ProcessApps(ctx context.Context)
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)
Click to show internal directories.
Click to hide internal directories.