refresh

package
v0.1.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package refresh updates the evidence of a saved local review without generation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git interface {
	Commits(context.Context, string, string) ([]gitlocal.Commit, error)
}

Git reads only the reviewed commit range. Refresh never exports a checkout.

type Refresher

type Refresher struct {
	GitHub   assemble.GitHub
	Git      Git
	Sessions assemble.Sessions
}

func (Refresher) Refresh

func (r Refresher) Refresh(ctx context.Context, repository github.Repository, number int, saved store.Version, caps bundle.Caps, now time.Time) ([]byte, error)

Refresh returns a validated replacement document. Callers publish it with Store.RefreshCurrent so a newer generation or refresh cannot be overwritten.

Jump to

Keyboard shortcuts

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