Documentation ¶
Index ¶
- func Detect(originURL *giturl.Parts, hostingPlatform configdomain.HostingPlatform) bool
- type Connector
- func (self *Connector) DefaultProposalMessage(proposal hostingdomain.Proposal) string
- func (self *Connector) FindProposal(_, _ gitdomain.LocalBranchName) (*hostingdomain.Proposal, error)
- func (self *Connector) NewProposalURL(branch, parentBranch gitdomain.LocalBranchName) (string, error)
- func (self *Connector) RepositoryURL() string
- func (self *Connector) SquashMergeProposal(_ int, _ gitdomain.CommitMessage) error
- func (self *Connector) UpdateProposalTarget(_ int, _ gitdomain.LocalBranchName) error
- type NewConnectorArgs
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 (*Connector) SquashMergeProposal ¶
func (self *Connector) SquashMergeProposal(_ int, _ gitdomain.CommitMessage) error
func (*Connector) UpdateProposalTarget ¶
func (self *Connector) UpdateProposalTarget(_ int, _ gitdomain.LocalBranchName) error
type NewConnectorArgs ¶
type NewConnectorArgs struct { HostingPlatform configdomain.HostingPlatform OriginURL *giturl.Parts }
Click to show internal directories.
Click to hide internal directories.