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: 0

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