progress

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package progress reads which of a pursuit's planned changes have landed: merged changes on the default branch carrying the pursuit's Change: trailers, read through the version-control interface.

Index

Constants

View Source
const Trailer = "Change"

Trailer is the key of the commit trailer that names a planned change as <pursuit>/<change>.

Variables

This section is empty.

Functions

func Landed

func Landed(repo Repo, pursuit string, since time.Time) (map[string]Landing, error)

Landed returns, by change name, the first commit on the default branch since the given time that carries a Change: trailer naming the pursuit. A repo with no default branch gives an empty map and no error: what cannot be known is not guessed, so the caller shows none landed.

func Parse

func Parse(value string) (pursuit, change string, ok bool)

Parse splits a Change: trailer value, <pursuit>/<change>, into its two slugs. A value that is not exactly two slugs around one "/" is not ok.

Types

type Landing

type Landing struct {
	Commit string    `json:"commit"`
	Short  string    `json:"short"`
	At     time.Time `json:"at"`
}

Landing is the commit on the default branch where a change first landed.

type Repo

type Repo interface {
	DefaultBranch() (string, error)
	Since(ref string, t time.Time) ([]vcs.Change, error)
}

Repo is the smallest part of vcs.Repo that progress reads.

Jump to

Keyboard shortcuts

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