review

package
v0.30.13 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package review implements automated PR review polling and fix prompt generation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixPromptGenerator

type FixPromptGenerator interface {
	Generate(ctx context.Context, opts GenerateOpts) error
}

FixPromptGenerator generates a fix prompt file in the inbox directory when a PR receives a request-changes review.

func NewFixPromptGenerator

func NewFixPromptGenerator() FixPromptGenerator

NewFixPromptGenerator creates a new FixPromptGenerator.

type GenerateOpts

type GenerateOpts struct {
	InboxDir           string
	OriginalPromptName string // filename without path, used to derive fix prompt name
	Branch             string
	PRURL              string
	RetryCount         int
	ReviewBody         string
}

GenerateOpts holds the options for generating a fix prompt.

type ReviewPoller added in v0.17.37

type ReviewPoller interface {
	Run(ctx context.Context) error
}

ReviewPoller watches all in_review prompts, fetches GitHub review state, generates fix prompts on request-changes, and triggers merge on approval.

func NewReviewPoller added in v0.17.37

func NewReviewPoller(
	queueDir string,
	inboxDir string,
	allowedReviewers []string,
	maxRetries int,
	pollInterval time.Duration,
	fetcher git.ReviewFetcher,
	prMerger git.PRMerger,
	promptManager prompt.Manager,
	generator FixPromptGenerator,
) ReviewPoller

NewReviewPoller creates a new ReviewPoller.

Jump to

Keyboard shortcuts

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