autoversion

package
v0.39.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoVersion

func AutoVersion(httpClient *http.Client, ghClient GitHubClient, path string) (latestVersion string, err error)

AutoVersion rewrites the given manifest with new version information if applicable.

Auto-versioning configuration is defined in a "version > auto-version" block. If a new version is found in the defined location then the version block's versions are updated.

Types

type GitHubClient

type GitHubClient interface {
	LatestRelease(repo string) (*github.Release, error)
	Releases(repo string, limit int) (releases []*github.Release, err error)
}

GitHubClient is the GitHub API subset that we need for auto-versioning.

Jump to

Keyboard shortcuts

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