bitbucket

package
v0.38.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	configuration librepo.Configuration,
	customConfiguration config.CustomConfiguration,
	logging librepo.Logging,
	vault librepo.Vault,
) repository.Bitbucket

func Unique

func Unique[T comparable](sliceList []T) []T

Types

type Impl

type Impl struct {
	Configuration       librepo.Configuration
	CustomConfiguration config.CustomConfiguration
	Logging             librepo.Logging
	Vault               librepo.Vault

	LowLevel bbclientint.BitbucketClient
}

func (*Impl) AddCommitBuildStatus added in v0.38.0

func (r *Impl) AddCommitBuildStatus(ctx context.Context, commitHash string, url string, key string, success bool) error

func (*Impl) CreatePullRequestComment added in v0.38.0

func (r *Impl) CreatePullRequestComment(ctx context.Context, pullRequestId int, comment string) error

func (*Impl) FilterExistingUsernames

func (r *Impl) FilterExistingUsernames(ctx context.Context, usernames []string) ([]string, error)

func (*Impl) GetBitbucketUser

func (r *Impl) GetBitbucketUser(ctx context.Context, username string) (repository.BitbucketUser, error)

func (*Impl) GetBitbucketUsers

func (r *Impl) GetBitbucketUsers(ctx context.Context, usernames []string) ([]repository.BitbucketUser, error)

func (*Impl) GetChangedFilesOnPullRequest added in v0.38.0

func (r *Impl) GetChangedFilesOnPullRequest(ctx context.Context, pullRequestId int) ([]repository.File, string, error)

func (*Impl) IsBitbucket

func (r *Impl) IsBitbucket() bool

func (*Impl) Setup

func (r *Impl) Setup() error

func (*Impl) SetupClient added in v0.33.0

func (r *Impl) SetupClient(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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