Documentation
¶
Overview ¶
Package openpr implements the pr command, which opens a branch's pull request in the default browser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBrowserOpener ¶
SetBrowserOpener overrides the function Action uses to open a URL in the browser. Intended for tests; pass nil to restore the default.
Types ¶
type Deps ¶
Deps are the collaborators the pr command needs. Adapters build them from their own runtime state; the action never sees bootstrap types.
type Engine ¶
type Engine interface {
CurrentBranch(ctx context.Context) *engine.Branch
BranchNames() *engine.BranchSet
AllBranches() engine.Branches
GetBranch(branchName string) engine.Branch
GetStackRootForBranch(branch engine.Branch) string
BatchReadMetadataRaw(ctx context.Context, branchNames []string) (engine.MetaMap, map[string]error)
}
Engine lists exactly the engine methods the pr command calls.
Click to show internal directories.
Click to hide internal directories.