Documentation ¶
Index ¶
- func FilterPullRequests(pullRequests []*gitea.PullRequest, organization string, ...) []*gitea.PullRequest
- type Connector
- func (self *Connector) DefaultProposalMessage(proposal domain.Proposal) string
- func (self *Connector) FindProposal(branch, target domain.LocalBranchName) (*domain.Proposal, error)
- func (self *Connector) HostingServiceName() string
- func (self *Connector) NewProposalURL(branch, parentBranch domain.LocalBranchName) (string, error)
- func (self *Connector) RepositoryURL() string
- func (self *Connector) SquashMergeProposal(number int, message string) (mergeSHA domain.SHA, err error)
- func (self *Connector) UpdateProposalTarget(_ int, _ domain.LocalBranchName) error
- type NewConnectorArgs
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 ¶
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 (*Connector) FindProposal ¶
func (*Connector) HostingServiceName ¶
func (*Connector) NewProposalURL ¶
func (self *Connector) NewProposalURL(branch, parentBranch domain.LocalBranchName) (string, error)
func (*Connector) RepositoryURL ¶
func (*Connector) SquashMergeProposal ¶
func (*Connector) UpdateProposalTarget ¶
func (self *Connector) UpdateProposalTarget(_ int, _ domain.LocalBranchName) error
Click to show internal directories.
Click to hide internal directories.