gitea

package
v11.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterPullRequests

func FilterPullRequests(pullRequests []*gitea.PullRequest, organization string, branch, target domain.LocalBranchName) []*gitea.PullRequest

Types

type Connector

type Connector struct {
	common.Config
	// contains filtered or unexported fields
}

func NewConnector

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

NewGiteaConfig provides Gitea configuration data if the current repo is hosted on Gitea, otherwise nil.

func (*Connector) DefaultProposalMessage

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

func (*Connector) FindProposal

func (self *Connector) FindProposal(branch, target domain.LocalBranchName) (*domain.Proposal, error)

func (*Connector) HostingServiceName

func (self *Connector) HostingServiceName() string

func (*Connector) NewProposalURL

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

func (*Connector) RepositoryURL

func (self *Connector) RepositoryURL() string

func (*Connector) SquashMergeProposal

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

func (*Connector) UpdateProposalTarget

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

type NewConnectorArgs

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

Jump to

Keyboard shortcuts

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