github

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(secret v1.Secret, domain string) (*github.Client, error)

Types

type CommitStatus

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

func NewGithubCommitStatusProvider

func NewGithubCommitStatusProvider(k8sClient client.Client, secret v1.Secret, domain string) (*CommitStatus, error)

func (CommitStatus) Set

type GitAuthenticationProvider

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

func NewGithubGitAuthenticationProvider

func NewGithubGitAuthenticationProvider(scmProvider *v1alpha1.ScmProvider, secret *v1.Secret) GitAuthenticationProvider

func (GitAuthenticationProvider) GetGitHttpsRepoUrl

func (gh GitAuthenticationProvider) GetGitHttpsRepoUrl(gitRepository v1alpha1.GitRepository) string

func (GitAuthenticationProvider) GetToken

func (GitAuthenticationProvider) GetUser

type PullRequest

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

func NewGithubPullRequestProvider

func NewGithubPullRequestProvider(k8sClient client.Client, secret v1.Secret, domain string) (*PullRequest, error)

func (*PullRequest) Close

func (pr *PullRequest) Close(ctx context.Context, pullRequest *v1alpha1.PullRequest) error

func (*PullRequest) Create

func (pr *PullRequest) Create(ctx context.Context, title, head, base, description string, pullRequest *v1alpha1.PullRequest) (string, error)

func (*PullRequest) FindOpen

func (pr *PullRequest) FindOpen(ctx context.Context, pullRequest *v1alpha1.PullRequest) (bool, error)

func (*PullRequest) Merge

func (pr *PullRequest) Merge(ctx context.Context, commitMessage string, pullRequest *v1alpha1.PullRequest) error

func (*PullRequest) Update

func (pr *PullRequest) Update(ctx context.Context, title, description string, pullRequest *v1alpha1.PullRequest) error

Jump to

Keyboard shortcuts

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