review

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// MaxChunkSize is the maximum size of a diff chunk in characters
	MaxChunkSize = 80000
	// MinChunkSize is the minimum useful chunk size
	MinChunkSize = 10000
)

Variables

This section is empty.

Functions

func FormatOutput

func FormatOutput(summary *ai.PRSummary, review *ai.ReviewResult) string

FormatOutput generates the standard markdown report

Types

type Engine

type Engine struct {
	AIClient       ai.Client
	Config         *internal.Config
	ContextFetcher *context.Fetcher
}

func NewEngine

func NewEngine(config *internal.Config) (*Engine, error)

func (*Engine) Review

func (e *Engine) Review(diffContent string) (*ai.PRSummary, *ai.ReviewResult, error)

func (*Engine) ReviewWithContext

func (e *Engine) ReviewWithContext(title, description, diffContent string) (*ai.PRSummary, *ai.ReviewResult, error)

ReviewWithContext allows passing specific title/description (used by GitHub action)

Jump to

Keyboard shortcuts

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