Documentation
¶
Overview ¶
Package input provides input parsing utilities for agent-code-review.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePRNumber ¶
ParsePRNumber parses a PR number from a string.
func ReadBody ¶
func ReadBody(src BodySource) (string, error)
ReadBody reads the body from the specified source. Priority: Text > File > Stdin
func ValidateReviewEvent ¶
ValidateReviewEvent validates a review event string.
Types ¶
type BodySource ¶
type BodySource struct {
// Text is the body text provided directly.
Text string
// File is the path to read the body from.
File string
// Stdin is the reader for stdin input (nil to skip stdin).
Stdin io.Reader
// StdinIsPipe indicates whether stdin is a pipe (not a terminal).
StdinIsPipe bool
}
BodySource specifies where to read the body from.
Click to show internal directories.
Click to hide internal directories.