Versions in this module Expand all Collapse all v1 v1.1.0 Oct 25, 2026 v1.0.2 Oct 25, 2026 v1.0.1 Oct 25, 2026 Changes in this version + var Info = protocol.Info + func ExecRunner(args ...string) ([]byte, error) + func Plugin(run Runner) protocol.Plugin + func StripDraft(title string) string + func ToCR(m *MR) *protocol.CR + type BranchInfo struct + Default bool + Protected bool + type Client struct + Project Project + Run Runner + func (c *Client) CancelAutoMerge(iid int) error + func (c *Client) CreateMR(n NewMR) (*MR, error) + func (c *Client) FindMRForBranch(branch string) (*MR, error) + func (c *Client) GetBranch(name string) (*BranchInfo, error) + func (c *Client) GetMR(iid int) (*MR, error) + func (c *Client) GetProject() (*ProjectInfo, error) + func (c *Client) ListMRsTargeting(branch string) ([]*MR, error) + func (c *Client) MarkReady(mr *MR) (*MR, error) + func (c *Client) Merge(iid int, squash bool, sha string) (*MR, error) + func (c *Client) SearchMRs(text string) ([]*MR, error) + func (c *Client) UpdateMR(iid int, fields map[string]any) (*MR, error) + type MR struct + AutoMerge bool + Description string + Draft bool + IID int + MergeError string + MergeStatus string + RemoveSource bool + SHA string + SourceBranch string + SourceProjectID int + Squash bool + State string + TargetBranch string + TargetProjectID int + Title string + WebURL string + func (m *MR) Checking() bool + func (m *MR) Merged() bool + func (m *MR) Open() bool + type NewMR struct + Description string + Draft bool + Source string + Target string + Title string + type Project struct + Host string + Path string + type ProjectInfo struct + SquashOption string + type Provider struct + C *Client + func (p *Provider) CancelAutoMerge(n int) error + func (p *Provider) CreateCR(n protocol.NewCR) (*protocol.CR, error) + func (p *Provider) FindCRForBranch(branch string) (*protocol.CR, error) + func (p *Provider) GetBranch(name string) (*protocol.Branch, error) + func (p *Provider) GetCR(n int) (*protocol.CR, error) + func (p *Provider) GetRepo() (*protocol.RepoSettings, error) + func (p *Provider) ListCRsTargeting(branch string) ([]*protocol.CR, error) + func (p *Provider) MarkReady(n int) (*protocol.CR, error) + func (p *Provider) Merge(n int, method, sha string) (*protocol.CR, error) + func (p *Provider) SearchCRs(text string) ([]*protocol.CR, error) + func (p *Provider) SyncStack([]int) error + func (p *Provider) Unstack([]int) error + func (p *Provider) UpdateCR(n int, u protocol.Update) (*protocol.CR, error) + type Runner func(args ...string) ([]byte, error)