github

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindLatestReleaseForRepo

func FindLatestReleaseForRepo(ctx context.Context, org, repo string) (*semver.Version, error)

FindLatestReleaseForRepo returns the latest release tag for a Github repository given an Organization and Repository name.

NOTE: latest release in this context does not necessarily mean the newest version: if a repo releases a patch for an older release for instance the the returned version could be that instead.

func FindRawLatestReleaseForRepo added in v0.12.0

func FindRawLatestReleaseForRepo(ctx context.Context, org, repo string) (string, error)

FindRawLatestReleaseForRepo returns the latest release tag as a string. It should be used directly for non-semver releases. Semver releases should use FindLatestReleaseForRepo

Types

This section is empty.

Jump to

Keyboard shortcuts

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