github

package
v0.3.0-20261112230238-... Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 8 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 github resolves the base revision of a queue by asking the GitHub REST API for the tip of the queue's target branch, so it needs no clone.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(params Params) baserevision.Resolver

New returns a Resolver that reads the target branch tip of each queue from GitHub as of the call. A queue without a target, or any API failure, is an error.

Types

type Params

type Params struct {
	// HTTPClient resolves a relative path against the GitHub API root and
	// carries the credentials, as with the GitHub change provider.
	HTTPClient *http.Client

	// Targets maps each queue to its target branch.
	Targets map[string]Target
}

Params are the dependencies of a Resolver.

type Target

type Target struct {
	// Owner is the organization or user that owns the repository.
	Owner string

	// Repo is the repository name.
	Repo string

	// Branch is the target branch.
	Branch string
}

Target locates the branch whose tip is a queue's base revision.

Jump to

Keyboard shortcuts

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