reviews

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLegacyReviewMetadata = errors.New("legacy XML review metadata detected")
)
View Source
var ErrNoReviewRounds = errors.New("no review rounds found")

Functions

func DiscoverRounds

func DiscoverRounds(prdDir string) ([]int, error)

func ExtractIssueNumber added in v0.1.10

func ExtractIssueNumber(filename string) int

func ExtractLegacyReviewBody added in v0.1.10

func ExtractLegacyReviewBody(content string) (string, error)

func FinalizeIssueStatuses added in v0.1.1

func FinalizeIssueStatuses(reviewDir string, entries []model.IssueEntry) error

func IsReviewResolved added in v0.1.10

func IsReviewResolved(content string) (bool, error)

func LatestRound

func LatestRound(prdDir string) (int, error)

func LooksLikeLegacyReviewFile added in v0.1.10

func LooksLikeLegacyReviewFile(content string) bool

func MetaPath

func MetaPath(reviewDir string) string

func NextRound

func NextRound(prdDir string) (int, error)

func ParseLegacyReviewContext added in v0.1.10

func ParseLegacyReviewContext(content string) (model.ReviewContext, error)

func ParseReviewContext added in v0.1.10

func ParseReviewContext(content string) (model.ReviewContext, error)

func ReadLegacyRoundMeta added in v0.2.0

func ReadLegacyRoundMeta(reviewDir string) (model.RoundMeta, error)

ReadLegacyRoundMeta reads the historical reviews-NNN/_meta.md file. It exists for migration and compatibility fallback only.

func ReadReviewEntries

func ReadReviewEntries(reviewDir string) ([]model.IssueEntry, error)

func ReadRoundMeta

func ReadRoundMeta(reviewDir string) (model.RoundMeta, error)

func RefreshRoundMeta

func RefreshRoundMeta(reviewDir string) (model.RoundMeta, error)

func ReviewDirectory

func ReviewDirectory(prdDir string, round int) string

func RoundDirName

func RoundDirName(round int) string

func SnapshotRoundMeta added in v0.2.0

func SnapshotRoundMeta(reviewDir string) (model.RoundMeta, error)

func TaskDirectory

func TaskDirectory(name string) string

func TaskDirectoryForWorkspace added in v0.1.5

func TaskDirectoryForWorkspace(workspaceRoot, name string) string

func UnknownCodeFile

func UnknownCodeFile(issueFileName string) string

func WrapParseError added in v0.1.10

func WrapParseError(path string, err error) error

func WriteRound

func WriteRound(reviewDir string, meta model.RoundMeta, items []provider.ReviewItem) error

func WriteRoundMeta

func WriteRoundMeta(reviewDir string, meta model.RoundMeta) error

WriteRoundMeta writes a legacy review round metadata file for tests and migrations. Normal review flows store round metadata in issue file front matter.

Types

type ArtifactParseError added in v0.2.0

type ArtifactParseError struct {
	Path string
	Err  error
}

ArtifactParseError preserves the review artifact path and underlying parse failure so callers can classify invalid review content without losing context.

func (*ArtifactParseError) Error added in v0.2.0

func (e *ArtifactParseError) Error() string

func (*ArtifactParseError) Unwrap added in v0.2.0

func (e *ArtifactParseError) Unwrap() error

Jump to

Keyboard shortcuts

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