github

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllVersions added in v0.20.0

func GetAllVersions(githubToken, org, repo string) retrieve.GetAllVersionsFunc

GetAllVersions will return a libdependency.VersionFetcherFunc that can retrieve all versions for a given GitHub org/repo.

func SanitizeGithubReleaseName

func SanitizeGithubReleaseName(release GithubReleaseNamesDTO) (*semver.Version, error)

SanitizeGithubReleaseName will determine whether to use the name or the tag as the semver version

Types

type GithubReleaseNamesDTO

type GithubReleaseNamesDTO struct {
	Name    string `json:"name"`
	TagName string `json:"tag_name"`
}

Jump to

Keyboard shortcuts

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