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.
Click to show internal directories.
Click to hide internal directories.