bitbucketcloud

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthType added in v0.54.0

type AuthType int

AuthType defines the authentication method for Bitbucket Cloud

const (
	// AuthTypeAppPassword will use app password authentication
	AuthTypeAppPassword AuthType = iota + 1
	// AuthTypeWorkspaceToken will use workspace token authentication
	AuthTypeWorkspaceToken
)

func ParseAuthType added in v0.54.0

func ParseAuthType(str string) (AuthType, error)

ParseAuthType parses an auth type from a string

type BitbucketCloud

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

func New

func New(username string, token string, repositories []string, workspaces []string, users []string, fork bool, sshAuth bool,
	newOwner string, authType AuthType) (*BitbucketCloud, error)

func (*BitbucketCloud) ClosePullRequest

func (bbc *BitbucketCloud) ClosePullRequest(_ context.Context, pr scm.PullRequest) error

func (*BitbucketCloud) CreatePullRequest

func (bbc *BitbucketCloud) CreatePullRequest(_ context.Context, _ scm.Repository, prRepo scm.Repository, newPR scm.NewPullRequest) (scm.PullRequest, error)

func (*BitbucketCloud) ForkRepository

func (bbc *BitbucketCloud) ForkRepository(_ context.Context, repo scm.Repository, newOwner string) (scm.Repository, error)

func (*BitbucketCloud) GetOpenPullRequest

func (bbc *BitbucketCloud) GetOpenPullRequest(ctx context.Context, repo scm.Repository, branchName string) (scm.PullRequest, error)

func (*BitbucketCloud) GetPullRequests

func (bbc *BitbucketCloud) GetPullRequests(ctx context.Context, branchName string) ([]scm.PullRequest, error)

func (*BitbucketCloud) GetRepositories

func (bbc *BitbucketCloud) GetRepositories(_ context.Context) ([]scm.Repository, error)

func (*BitbucketCloud) MergePullRequest

func (bbc *BitbucketCloud) MergePullRequest(_ context.Context, pr scm.PullRequest) error

func (*BitbucketCloud) UpdatePullRequest

func (bbc *BitbucketCloud) UpdatePullRequest(_ context.Context, _ scm.Repository, pullReq scm.PullRequest, updatedPR scm.NewPullRequest) (scm.PullRequest, error)

Jump to

Keyboard shortcuts

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