Versions in this module Expand all Collapse all v1 v1.0.0 Oct 24, 2026 v0 v0.2.0 Oct 24, 2026 v0.1.0 Oct 24, 2026 Changes in this version + const BlockHTMLComment + const BlockLinkRef + const CodeAuth + const CodeFailure + const CodeNotFound + const CodeUnsupported + const ExecutablePrefix + const MethodMerge + const MethodRebase + const MethodSquash + const OpCancelAutoMerge + const OpCreateCR + const OpDescribe + const OpDetect + const OpFindCRForBranch + const OpGetBranch + const OpGetCR + const OpGetRepo + const OpListCRsTargeting + const OpMarkReady + const OpMerge + const OpSearchCRs + const OpSyncStack + const OpUnstack + const OpUpdateCR + const StateClosed + const StateMerged + const StateMerging + const StateOpen + const Version + func CodeOf(err error) string + func Errorf(code, format string, args ...any) error + func Serve(p Plugin) + type Branch struct + Default bool + Protected bool + type CR struct + AutoMerge bool + Base string + Body string + Checking bool + DeleteHead bool + Draft bool + FromFork bool + Head string + HeadSHA string + MergeError string + Number int + State string + Title string + URL string + func (c *CR) Merged() bool + func (c *CR) Open() bool + type Error struct + Code string + Message string + func (e *Error) Error() string + type Info struct + BlockStyle string + MaxBody int + MergeMethods []string + Name string + NativeStacks bool + Protocol int + Terms Terms + type NewCR struct + Base string + Body string + Draft bool + Head string + Title string + type Plugin struct + Detect func(repo Repo) bool + Info Info + Open func(repo Repo) (Provider, error) + type Provider interface + CancelAutoMerge func(number int) error + CreateCR func(n NewCR) (*CR, error) + FindCRForBranch func(branch string) (*CR, error) + GetBranch func(name string) (*Branch, error) + GetCR func(number int) (*CR, error) + GetRepo func() (*RepoSettings, error) + ListCRsTargeting func(branch string) ([]*CR, error) + MarkReady func(number int) (*CR, error) + Merge func(number int, method, sha string) (*CR, error) + SearchCRs func(text string) ([]*CR, error) + SyncStack func(numbers []int) error + Unstack func(numbers []int) error + UpdateCR func(number int, u Update) (*CR, error) + type Repo struct + Host string + Path string + RemoteURL string + type RepoSettings struct + DefaultMergeMethod string + type Request struct + Branch string + Method string + New *NewCR + Number int + Numbers []int + Protocol int + Repo Repo + SHA string + Text string + Update *Update + type Response struct + Branch *Branch + CR *CR + CRs []*CR + Error *Error + Info *Info + Match bool + Repo *RepoSettings + func Dispatch(p Plugin, op string, r io.Reader) Response + type Terms struct + Long string + Ref string + Short string + type Update struct + Base *string + Body *string + Title *string