review

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package review builds code review prompts and parses review output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderText

func RenderText(w io.Writer, report Report)

Types

type FileChange

type FileChange struct {
	Path      string `json:"path"`
	Status    string `json:"status"`
	Additions int    `json:"additions"`
	Deletions int    `json:"deletions"`
}

type Options

type Options struct {
	Base   string
	Staged bool
	Limit  int
}

type Report

type Report struct {
	Kind             string                   `json:"kind"`
	Action           string                   `json:"action"`
	Status           string                   `json:"status"`
	Base             string                   `json:"base,omitempty"`
	Staged           bool                     `json:"staged,omitempty"`
	Summary          Summary                  `json:"summary"`
	Files            []FileChange             `json:"files"`
	SecurityFindings []securityreview.Finding `json:"security_findings,omitempty"`
	Signals          []string                 `json:"signals,omitempty"`
}

func Run

func Run(workspace string, options Options) (Report, error)

type Summary

type Summary struct {
	Files     int `json:"files"`
	Additions int `json:"additions"`
	Deletions int `json:"deletions"`
}

Jump to

Keyboard shortcuts

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