pkg

package
v0.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PullRequestToCr

func PullRequestToCr(
	pullRequest *github.PullRequest,
	output *RepositorySyncOutput,
) v1alpha1.PullRequest

Types

type RepositorySyncInput

type RepositorySyncInput struct {
	Repository githubv1alpha1.Repository
	Token      string
}

type RepositorySyncOutput

type RepositorySyncOutput struct {
	Input        *RepositorySyncInput
	PullRequests []*github.PullRequest
	WorkflowRuns []*github.WorkflowRun
}

type RepositorySyncer

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

func NewRepositorySyncer

func NewRepositorySyncer(
	logger logr.Logger,
	workflowFileNames []string,
	cache *RepositorySyncerCache,
) RepositorySyncer

func (*RepositorySyncer) Run

type RepositorySyncerCache

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

func NewRepositorySyncerCache

func NewRepositorySyncerCache() *RepositorySyncerCache

func (*RepositorySyncerCache) GetAllRuns

func (rsc *RepositorySyncerCache) GetAllRuns() []*github.WorkflowRun

func (*RepositorySyncerCache) SaveInCache

func (rsc *RepositorySyncerCache) SaveInCache(workflowRuns []*github.WorkflowRun) bool

Jump to

Keyboard shortcuts

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