release

package
v0.9.0-dev.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: GPL-3.0 Imports: 7 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 release provides small GitHub API helpers for panel distribution discovery.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveURL

func ArchiveURL(apiBase, owner, repo, ref string) string

ArchiveURL returns the GitHub archive download URL for a ref (tag, branch, or SHA).

Types

type Asset

type Asset struct {
	Name string `json:"name"`
	URL  string `json:"browser_download_url"`
	Size int64  `json:"size"`
}

Asset is a GitHub release asset.

type Branch

type Branch struct {
	Name   string `json:"name"`
	Commit struct {
		SHA string `json:"sha"`
	} `json:"commit"`
}

Branch is a GitHub branch tip document.

type Client

type Client struct {
	HTTPClient *http.Client
	APIBase    string
}

Client fetches release and branch metadata with bounded responses.

func (Client) BranchTip

func (c Client) BranchTip(ctx context.Context, owner, repo, branch string) (string, error)

BranchTip returns the tip commit SHA for owner/repo@branch.

func (Client) LatestRelease

func (c Client) LatestRelease(ctx context.Context, owner, repo string) (Release, error)

LatestRelease returns the latest release for owner/repo.

type Release

type Release struct {
	TagName string  `json:"tag_name"`
	Assets  []Asset `json:"assets"`
}

Release is a GitHub release document.

Jump to

Keyboard shortcuts

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