Documentation ¶
Index ¶
- func Detect(originURL giturl.Parts) bool
- func FilterPullRequests(pullRequests []*gitea.PullRequest, organization string, ...) []*gitea.PullRequest
- type Connector
- func (self Connector) DefaultProposalMessage(proposal hostingdomain.Proposal) string
- func (self Connector) FindProposal(branch, target gitdomain.LocalBranchName) (Option[hostingdomain.Proposal], error)
- func (self Connector) NewProposalURL(branch, parentBranch, _ gitdomain.LocalBranchName) (string, error)
- func (self Connector) RepositoryURL() string
- func (self Connector) SquashMergeProposal(number int, message 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 FilterPullRequests ¶
func FilterPullRequests(pullRequests []*gitea.PullRequest, organization string, branch, target gitdomain.LocalBranchName) []*gitea.PullRequest
Types ¶
type Connector ¶
type Connector struct { hostingdomain.Data APIToken Option[configdomain.GiteaToken] // 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 hostingdomain.Proposal) string
func (Connector) FindProposal ¶
func (self Connector) FindProposal(branch, target gitdomain.LocalBranchName) (Option[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(number int, message gitdomain.CommitMessage) error
func (Connector) UpdateProposalTarget ¶
func (self Connector) UpdateProposalTarget(_ int, _ gitdomain.LocalBranchName) error
type NewConnectorArgs ¶
type NewConnectorArgs struct { APIToken Option[configdomain.GiteaToken] Log print.Logger OriginURL giturl.Parts }
Click to show internal directories.
Click to hide internal directories.