release

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package release implements release sets and dependency-ordered release planning. A release set groups component releases across repositories in an initiative; topological sorting ensures libraries are released before their consumers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentRelease

type ComponentRelease struct {
	RepositoryID string
	Version      string
	Stage        int // topological stage (0 = no deps, 1 = depends on stage 0, etc.)
	RMIs         []string
}

ComponentRelease is one repo's release within a set.

type ReleaseSet

type ReleaseSet struct {
	InitiativeID string
	Components   []ComponentRelease
}

ReleaseSet groups component releases for one initiative.

func Plan

func Plan(initiative string, rmis []*store.RoadmapItem, repoDeps []*store.RepositoryDependency) (*ReleaseSet, error)

Plan computes a dependency-ordered release plan for an initiative. It uses repository dependencies to determine release order: - Stage 0: repos with no in-initiative dependencies (libraries) - Stage 1: repos that depend only on stage-0 repos - Stage N: repos that depend on stage N-1 or earlier

func (*ReleaseSet) Stages

func (rs *ReleaseSet) Stages() []Stage

Stages groups components into parallel-releasable stages.

type Stage

type Stage struct {
	Number int
	Repos  []ComponentRelease
}

Stage is a group of repos that can be released in parallel.

Jump to

Keyboard shortcuts

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