Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiscoveryInput ¶
type DiscoveryInput struct {
ProjectID string
Repo string
Snapshot *githubinfra.DiscoverySnapshot
}
type DiscoveryResult ¶
type GitHubGateway ¶
type GitHubGateway interface {
ListOpenIssues(context.Context, githubinfra.ListOpenIssuesInput) ([]githubinfra.IssueSummary, error)
ListOpenPullRequests(context.Context, githubinfra.ListOpenPullRequestsInput) ([]githubinfra.PullRequestSummary, error)
ListLinkedPullRequests(context.Context, githubinfra.LinkedPullRequestsInput) ([]githubinfra.LinkedPullRequest, error)
ViewIssue(context.Context, githubinfra.ViewIssueInput) (githubinfra.IssueDetail, error)
ViewPullRequest(context.Context, githubinfra.ViewPullRequestInput) (githubinfra.PullRequestDetail, error)
ListIssueComments(context.Context, githubinfra.ViewIssueInput) ([]githubinfra.CommentInfo, error)
ListIssueTimeline(context.Context, githubinfra.IssueTimelineInput) ([]map[string]any, error)
ListIssueBlockedBy(context.Context, githubinfra.ListIssueBlockedByInput) ([]githubinfra.IssueDependency, error)
GetIssueState(context.Context, githubinfra.ViewIssueInput) (githubinfra.IssueState, error)
GetCurrentUserLogin(context.Context, string) (string, error)
GetCurrentUserLoginForRepo(context.Context, string, string) (string, error)
GetRepositoryPermission(context.Context, githubinfra.RepositoryPermissionInput) (string, error)
ListBlockedByIssues(context.Context, githubinfra.ViewIssueInput) ([]githubinfra.DependencyIssue, error)
ListSubIssues(context.Context, githubinfra.ViewIssueInput) ([]githubinfra.DependencyIssue, error)
AddIssueAssignees(context.Context, githubinfra.IssueAssigneesInput) error
AddIssueLabels(context.Context, githubinfra.IssueLabelsInput) error
AddIssueReaction(context.Context, githubinfra.CreateIssueReactionInput) error
RemoveIssueLabels(context.Context, githubinfra.IssueLabelsInput) error
CreateIssueComment(context.Context, githubinfra.IssueCommentInput) (githubinfra.IssueCommentResult, error)
UpdateIssueComment(context.Context, githubinfra.UpdateIssueCommentInput) error
DeleteIssueComment(context.Context, githubinfra.DeleteIssueCommentInput) error
AddPullRequestReviewers(context.Context, githubinfra.PullRequestReviewersInput) error
AddPullRequestLabels(context.Context, githubinfra.PullRequestLabelsInput) error
RemovePullRequestLabels(context.Context, githubinfra.PullRequestLabelsInput) error
ViewPullRequestMergeWatch(context.Context, githubinfra.ViewPullRequestInput) (githubinfra.PullRequestDetail, error)
ListPullRequestCheckRuns(context.Context, githubinfra.PullRequestCheckRunsInput) (githubinfra.PullRequestCheckRuns, error)
GetBranchProtection(context.Context, githubinfra.BranchProtectionInput) (githubinfra.BranchProtection, error)
}
type IssueSummary ¶
type NetworkGateway ¶ added in v0.9.0
type NetworkGateway interface {
Status(context.Context) (protocol.NodeStatusResponse, error)
RevalidateLease(context.Context, protocol.CoordinatorLeaseRevalidateRequest) error
}
func NewLoopernetGateway ¶ added in v0.9.0
func NewLoopernetGateway(statePath string) NetworkGateway
type Options ¶
type Options struct {
Repos *storage.Repositories
GitHub GitHubGateway
Config *config.Config
Logger bootstrap.Logger
Now func() time.Time
TriageLLM triage.LLM
Inspector RepositoryInspector
Disclosure *config.DisclosureConfig
Network NetworkGateway
State *RuntimeState
}
type RepositoryInspector ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) DiscoverIssues ¶
func (r *Runner) DiscoverIssues(ctx context.Context, input DiscoveryInput) (DiscoveryResult, error)
type RuntimeState ¶ added in v0.11.0
type RuntimeState struct {
// contains filtered or unexported fields
}
RuntimeState contains coordinator lifecycle state that must outlive one immutable configuration snapshot. Snapshot-specific policy remains on Runner.
func NewRuntimeState ¶ added in v0.11.0
func NewRuntimeState() *RuntimeState
Click to show internal directories.
Click to hide internal directories.