scms

package
v0.0.1-rc5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitStatusProvider

type CommitStatusProvider interface {
	Set(ctx context.Context, commitStatus *v1alpha1.CommitStatus) (*v1alpha1.CommitStatus, error)
}

type GitOperationsProvider

type GitOperationsProvider interface {
	GetGitHttpsRepoUrl(gitRepo v1alpha1.GitRepository) string
	GetToken(ctx context.Context) (string, error)
	GetUser(ctx context.Context) (string, error)
}

type PullRequestProvider

type PullRequestProvider interface {
	Create(ctx context.Context, title, head, base, description string, pullRequest *v1alpha1.PullRequest) (string, error)
	Close(ctx context.Context, pullRequest *v1alpha1.PullRequest) error
	Update(ctx context.Context, title, description string, pullRequest *v1alpha1.PullRequest) error
	Merge(ctx context.Context, commitMessage string, pullRequest *v1alpha1.PullRequest) error
	FindOpen(ctx context.Context, pullRequest *v1alpha1.PullRequest) (bool, error)
}

type ScmProviderType

type ScmProviderType string
const (
	Fake   ScmProviderType = "fake"
	GitHub ScmProviderType = "github"
	GitLab ScmProviderType = "gitlab"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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