Versions in this module Expand all Collapse all v1 v1.0.0 Oct 24, 2026 Changes in this version + var Info = protocol.Info + func ExecRunner(args ...string) ([]byte, error) + func Plugin(run Runner, rest *REST) protocol.Plugin + type Client struct + REST *REST + Repo Repository + Run Runner + func (c *Client) CreatePR(n protocol.NewCR) (*PR, error) + func (c *Client) GetPR(id int) (*PR, error) + func (c *Client) GetRepo() (*RepoInfo, error) + func (c *Client) ListPRs(criteria map[string]string) ([]*PR, error) + func (c *Client) Policies() ([]*Policy, error) + func (c *Client) UpdatePR(id int, u PRUpdate) (*PR, error) + type Identity struct + ID string + type PR struct + AutoCompleteSetBy *Identity + CompletionOptions ... + CompletionQueueTime string + Description string + ForkSource json.RawMessage + ID int + IsDraft bool + LastMergeSourceCommit *Ref + MergeFailureMessage string + MergeStatus string + Repository struct{ ... } + SourceRefName string + Status string + TargetRefName string + Title string + type PRUpdate struct + AutoComplete *bool + Description *string + Draft *bool + Squash *bool + Status string + Title *string + type Policy struct + IsBlocking bool + IsDeleted bool + IsEnabled bool + Settings struct{ ... } + Type struct{ ... } + 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) ToCR(pr *PR) *protocol.CR + func (p *Provider) Unstack([]int) error + func (p *Provider) UpdateCR(n int, u protocol.Update) (*protocol.CR, error) + type REST struct + Auth func() (string, error) + HTTP *http.Client + func NewREST(getenv func(string) string, run Runner) *REST + func (r *REST) PatchPR(repo Repository, id int, body, out any) error + type Ref struct + CommitID string + type RepoInfo struct + DefaultBranch string + ID string + type Repository struct + Name string + OrgURL string + Project string + func ParseRepo(r protocol.Repo) (Repository, error) + func (r Repository) WebURL() string + type Runner func(args ...string) ([]byte, error)