Documentation
¶
Index ¶
- Variables
- type Binding
- type Comment
- type PRFile
- type Page
- type PullRequest
- type Remote
- type Service
- func (s Service) AddRoutes(mux *http.ServeMux)
- func (s Service) Binding(ctx context.Context, cwd string) (*Binding, error)
- func (s Service) Connect(ctx context.Context, root string, selected Remote, mode string) (*Binding, error)
- func (s Service) Read(ctx context.Context, cwd string, id int64, kind string, number int, ...) (any, error)
- func (s Service) State(ctx context.Context, root string) (State, error)
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStale = errors.New("the repository or pull request has changed; refresh and review the current revision")
Functions ¶
This section is empty.
Types ¶
type PullRequest ¶
type PullRequest struct {
Number int `json:"number"`
Title string `json:"title"`
Body string `json:"body,omitempty"`
AuthorLogin string `json:"authorLogin"`
Head string `json:"head"`
HeadOwner string `json:"headOwner"`
Ref string `json:"ref"`
Base string `json:"base"`
URL string `json:"url"`
Draft bool `json:"draft"`
}
type Service ¶
type Service struct {
Store runtimetypes.Store
Scope func(string) string
GrantedRoot func(string) (string, error)
// contains filtered or unexported fields
}
func New ¶
func New(store runtimetypes.Store, workspaceID string, roots workspaceevents.Service) Service
Click to show internal directories.
Click to hide internal directories.