gitlab

package
v10.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	common.Config
}

func (*Config) DefaultProposalMessage

func (self *Config) DefaultProposalMessage(proposal domain.Proposal) string

func (*Config) HostingServiceName

func (self *Config) HostingServiceName() string

func (*Config) NewProposalURL

func (self *Config) NewProposalURL(branch, parentBranch domain.LocalBranchName) (string, error)

func (*Config) RepositoryURL

func (self *Config) RepositoryURL() string

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 domain.LocalBranchName) (*domain.Proposal, error)

func (*Connector) SquashMergeProposal

func (self *Connector) SquashMergeProposal(number int, message string) (mergeSHA domain.SHA, err error)

func (*Connector) UpdateProposalTarget

func (self *Connector) UpdateProposalTarget(number int, target domain.LocalBranchName) error

type NewConnectorArgs

type NewConnectorArgs struct {
	HostingService config.Hosting
	OriginURL      *giturl.Parts
	APIToken       string
	Log            common.Log
}

Jump to

Keyboard shortcuts

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