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 GitLab server.
Types ¶
type Config ¶
type Config struct { hostingdomain.Config APIToken configdomain.GitLabToken }
func (*Config) DefaultProposalMessage ¶
func (self *Config) DefaultProposalMessage(proposal hostingdomain.Proposal) string
func (*Config) NewProposalURL ¶
func (self *Config) NewProposalURL(branch, parentBranch gitdomain.LocalBranchName) (string, error)
func (*Config) RepositoryURL ¶
type Connector ¶
type Connector struct { Config // contains filtered or unexported fields }
Connector provides standardized connectivity for the given repository (gitlab.com/owner/repo) via the GitLab API.
func NewConnector ¶
func NewConnector(args NewConnectorArgs) (*Connector, error)
NewGitlabConfig provides GitLab configuration data if the current repo is hosted on GitLab, otherwise nil.
func (*Connector) FindProposal ¶
func (self *Connector) FindProposal(branch, target gitdomain.LocalBranchName) (*hostingdomain.Proposal, error)
func (*Connector) SquashMergeProposal ¶
func (*Connector) UpdateProposalTarget ¶
func (self *Connector) UpdateProposalTarget(number int, target gitdomain.LocalBranchName) error
type NewConnectorArgs ¶
type NewConnectorArgs struct { APIToken configdomain.GitLabToken HostingPlatform configdomain.HostingPlatform Log print.Logger OriginURL *giturl.Parts }
Click to show internal directories.
Click to hide internal directories.