friend

package
v0.0.0-...-073f691 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package friend builds friend-review packets and imports friend feedback.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFeedback

func ApplyFeedback(analysis signals.AnalysisReport, feedback []signals.FriendFeedbackExport, now time.Time) signals.AnalysisReport

ApplyFeedback adds validated feedback signals and summary findings to an analysis.

func BuildPacket

func BuildPacket(repo signals.RepoMetadata, card signals.PRQualityCard, publicSafe bool, now time.Time) signals.FriendReviewPacket

BuildPacket creates a V2 friend-review packet.

func FindPRCard

func FindPRCard(cards []signals.PRQualityCard, pr int) (signals.PRQualityCard, bool)

FindPRCard finds a quality card by PR number.

func PacketID

func PacketID(repoID string, pr int, label string) string

PacketID returns the stable friend-review packet id for an artifact.

func ReadFeedbackExports

func ReadFeedbackExports(path string) ([]signals.FriendFeedbackExport, error)

ReadFeedbackExports reads one feedback export file or every JSON file in a directory.

func ReviewRubric

func ReviewRubric() []signals.ReviewRubricQuestion

ReviewRubric returns the canonical packet and feedback rubric.

func ValidateFeedback

func ValidateFeedback(feedback signals.FriendFeedbackExport) error

ValidateFeedback validates the public-safe friend-feedback import contract.

Types

This section is empty.

Jump to

Keyboard shortcuts

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