bitbucket

package
v12.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(originURL *giturl.Parts, hostingPlatform configdomain.HostingPlatform) bool

Detect indicates whether the current repository is hosted on a GitHub server.

Types

type Connector

type Connector struct {
	hostingdomain.Config
}

Connector provides access to the API of Bitbucket installations.

func NewConnector

func NewConnector(args NewConnectorArgs) (*Connector, error)

NewConnector provides a Bitbucket connector instance if the current repo is hosted on Bitbucket, otherwise nil.

func (*Connector) DefaultProposalMessage

func (self *Connector) DefaultProposalMessage(proposal hostingdomain.Proposal) string

func (*Connector) FindProposal

func (self *Connector) FindProposal(_, _ gitdomain.LocalBranchName) (*hostingdomain.Proposal, error)

func (*Connector) NewProposalURL

func (self *Connector) NewProposalURL(branch, parentBranch gitdomain.LocalBranchName) (string, error)

func (*Connector) RepositoryURL

func (self *Connector) RepositoryURL() string

func (*Connector) SquashMergeProposal

func (self *Connector) SquashMergeProposal(_ int, _ string) error

func (*Connector) UpdateProposalTarget

func (self *Connector) UpdateProposalTarget(_ int, _ gitdomain.LocalBranchName) error

type NewConnectorArgs

type NewConnectorArgs struct {
	HostingPlatform configdomain.HostingPlatform
	OriginURL       *giturl.Parts
}

Jump to

Keyboard shortcuts

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