Versions in this module Expand all Collapse all v1 v1.0.0 Oct 24, 2026 v0 v0.2.0 Oct 24, 2026 Changes in this version + const DefaultBaseURL + const Host + var Info = protocol.Info + func ExecGitCredential(host string) (string, string, error) + func Plugin(opts Options) protocol.Plugin + func ToCR(p *PR) *protocol.CR + type Auth func(req *http.Request) + func Credentials(getenv func(string) string, git GitCredential) (Auth, error) + type Client struct + Auth Auth + BaseURL string + HTTP *http.Client + Slug string + Workspace string + func (c *Client) GetPR(id int) (*PR, error) + func (c *Client) ListPRs(q string, first bool, states ...string) ([]*PR, error) + type Endpoint struct + Branch struct{ ... } + Commit struct{ ... } + Repository struct{ ... } + type GitCredential func(host string) (user, password string, err error) + type Options struct + BaseURL string + Getenv func(string) string + GitCredential GitCredential + HTTP *http.Client + Sleep func(time.Duration) + type PR struct + CloseSourceBranch bool + Description string + Destination Endpoint + Draft bool + ID int + Links struct{ ... } + Reviewers []Reviewer + Source Endpoint + State string + Title string + type Provider struct + C *Client + func (p *Provider) CancelAutoMerge(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 Reviewer struct + UUID string