commenter

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FIRST_AVAILABLE_LINE = -1

Functions

This section is empty.

Types

type Finding added in v0.16.0

type Finding struct {
	Path        string
	StartLine   int
	EndLine     int
	Body        string
	Fingerprint string
}

Finding is one logical scanner result. Body must already contain both the Aqua marker and the fingerprint sentinel (see EmbedFingerprint), so that reconciliation can identify and match it across runs.

type Reconciler added in v0.16.0

type Reconciler interface {
	ReconcileAquaComments(marker string, current []Finding) error
}

Reconciler is an optional capability detected via type assertion; providers that don't implement it fall back to the legacy delete-all + repost path.

type Repository

type Repository interface {
	// WriteMultiLineComment writes a multiline review on a file in the git PR
	WriteMultiLineComment(file, comment string, startLine, endLine int) error
	// WriteLineComment writes a single review line on a file of the git PR
	WriteLineComment(file, comment string, line int) error
	// RemovePreviousAquaComments Removing the comments from previous PRs
	RemovePreviousAquaComments(msg string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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