Documentation
¶
Index ¶
- type GithubAdapter
- func (a *GithubAdapter) AddComment(ctx context.Context, externalID string, body string) error
- func (a *GithubAdapter) Capabilities() adapter.AdapterCapabilities
- func (a *GithubAdapter) Fetch(ctx context.Context, externalID string) (domain.Session, error)
- func (a *GithubAdapter) ListSelectable(ctx context.Context, opts adapter.ListOpts) (*adapter.ListResult, error)
- func (a *GithubAdapter) Name() string
- func (a *GithubAdapter) OnEvent(ctx context.Context, event domain.SystemEvent) error
- func (a *GithubAdapter) Resolve(ctx context.Context, sel adapter.Selection) (domain.Session, error)
- func (a *GithubAdapter) StartPRRefresh(ctx context.Context, workspaceID string)
- func (a *GithubAdapter) UpdateState(ctx context.Context, externalID string, state domain.TrackerState) error
- func (a *GithubAdapter) Watch(ctx context.Context, filter adapter.WorkItemFilter) (<-chan adapter.WorkItemEvent, error)
- type GithubRepoSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubAdapter ¶
type GithubAdapter struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, cfg config.GithubConfig) (*GithubAdapter, error)
func NewRepoLifecycle ¶
func NewRepoLifecycle(ctx context.Context, cfg config.GithubConfig, repos adapter.ReviewArtifactRepos) (*GithubAdapter, error)
func (*GithubAdapter) AddComment ¶
func (*GithubAdapter) Capabilities ¶
func (a *GithubAdapter) Capabilities() adapter.AdapterCapabilities
func (*GithubAdapter) ListSelectable ¶
func (a *GithubAdapter) ListSelectable(ctx context.Context, opts adapter.ListOpts) (*adapter.ListResult, error)
func (*GithubAdapter) Name ¶
func (a *GithubAdapter) Name() string
func (*GithubAdapter) OnEvent ¶
func (a *GithubAdapter) OnEvent(ctx context.Context, event domain.SystemEvent) error
func (*GithubAdapter) StartPRRefresh ¶
func (a *GithubAdapter) StartPRRefresh(ctx context.Context, workspaceID string)
StartPRRefresh starts a background goroutine that periodically refreshes non-terminal GitHub pull requests from the API. It runs an immediate refresh on startup and then repeats every 120 seconds.
func (*GithubAdapter) UpdateState ¶
func (a *GithubAdapter) UpdateState(ctx context.Context, externalID string, state domain.TrackerState) error
func (*GithubAdapter) Watch ¶
func (a *GithubAdapter) Watch(ctx context.Context, filter adapter.WorkItemFilter) (<-chan adapter.WorkItemEvent, error)
type GithubRepoSource ¶
type GithubRepoSource struct {
// contains filtered or unexported fields
}
GithubRepoSource lists the user's GitHub repositories and supports search.
func NewRepoSource ¶
func NewRepoSource(ctx context.Context, cfg config.GithubConfig) (*GithubRepoSource, error)
NewRepoSource creates a GitHub repo source, resolving the token from config or falling back to the gh CLI.
func (*GithubRepoSource) ListRepos ¶
func (s *GithubRepoSource) ListRepos(ctx context.Context, opts adapter.RepoListOpts) (*adapter.RepoListResult, error)
ListRepos returns repositories available for cloning.
func (*GithubRepoSource) Name ¶
func (s *GithubRepoSource) Name() string
Name returns the source identifier.
Click to show internal directories.
Click to hide internal directories.