changeinputs

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package changeinputs builds the bounded, source-derived ownership inputs attached to one exact pull-request base/head observation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hydrate

func Hydrate(
	ctx context.Context,
	rest *gh.RESTClient,
	writer *store.EntityWriter,
	class budget.Class,
	repositoryID int64,
	repositoryOwner string,
	repositoryName string,
	number int,
	node *gh.PullRequestNode,
) (*store.PullRequestChangeSnapshotRecord, error)

Hydrate reads changed-file rename supplements and the effective CODEOWNERS source at the observed base SHA. GraphQL supplies the authoritative file paths and connection completeness; REST is used only for facts GraphQL does not expose and for a final base/head fence check.

func Semantic

func Semantic(snapshot *store.PullRequestChangeSnapshotRecord) map[string]any

Semantic returns the null-safe, source-derived value embedded in drift snapshots. Source content itself is deliberately represented by its hash; consumers read the mirrored source from the public snapshot table.

Types

This section is empty.

Jump to

Keyboard shortcuts

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