provider

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Name() string
	FetchReviews(ctx context.Context, pr string) ([]ReviewItem, error)
	ResolveIssues(ctx context.Context, pr string, issues []ResolvedIssue) error
}

Provider abstracts review fetching and thread resolution for a specific source.

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry maps provider names to implementations.

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Get

func (r *Registry) Get(name string) (Provider, error)

func (*Registry) Register

func (r *Registry) Register(p Provider)

type ResolvedIssue

type ResolvedIssue struct {
	FilePath    string
	ProviderRef string
}

ResolvedIssue identifies an issue file that the agent marked as resolved.

type ReviewItem

type ReviewItem struct {
	Title       string
	File        string
	Line        int
	Severity    string
	Author      string
	Body        string
	ProviderRef string
}

ReviewItem is the normalized output of a provider fetch operation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL