gogit

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrganizationPullRequest

func CreateOrganizationPullRequest(
	ctx context.Context,
	gc gitprovider.Client,
	domain, branch string,
	spec deliveryv1alpha1.PullRequestTemplate,
	repository mpasv1alpha1.Repository,
) (int, error)

CreateOrganizationPullRequest creates a pull-request for an organization owned repository.

func CreateOrganizationRepository

func CreateOrganizationRepository(ctx context.Context, gc gitprovider.Client, domain string, obj mpasv1alpha1.Repository) error

CreateOrganizationRepository creates a repository for an authenticated organization.

func CreateUserPullRequest

func CreateUserPullRequest(
	ctx context.Context,
	gc gitprovider.Client,
	domain, branch string,
	spec deliveryv1alpha1.PullRequestTemplate,
	repository mpasv1alpha1.Repository,
) (int, error)

CreateUserPullRequest creates a pull-request for a user owned repository.

func CreateUserRepository

func CreateUserRepository(ctx context.Context, gc gitprovider.Client, domain string, obj mpasv1alpha1.Repository) error

CreateUserRepository creates a repository for an authenticated user.

Types

type Repositories

type Repositories interface {
	Commits() gitprovider.CommitClient
}

Repositories groups together a common functionality of both repository types.

Jump to

Keyboard shortcuts

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