runlifecycle

package
v0.10.257 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package runlifecycle owns pure decisions shared by review run lifecycles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewestCompatibleIncompleteRun

func NewestCompatibleIncompleteRun(runs []ledger.Run, baseSHA string, postMode ledger.PostMode, markerKind string, markerMatches func(string, string, string) bool) (ledger.Run, bool)

NewestCompatibleIncompleteRun selects the newest resumable run for a base, post mode, and artifact marker kind.

func PostingKey

func PostingKey(identity gitprovider.Identity) string

PostingKey returns the canonical durable key for a posting identity: login, falling back to ID.

Types

type PremiseComparison

type PremiseComparison struct {
	StoredHeadSHA  string
	CurrentHeadSHA string
	StoredBaseSHA  string
	CurrentBaseSHA string
	Moved          bool
}

PremiseComparison describes how a stored run premise compares with the current pull request premise.

func ComparePremises

func ComparePremises(run ledger.Run, currentHeadSHA, currentBaseSHA string) PremiseComparison

ComparePremises compares a stored run premise with current head and base SHAs and returns the data callers need to render their own message.

Jump to

Keyboard shortcuts

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