gh

package
v1.1.0-rc15 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadReleaseAsset

func DownloadReleaseAsset(ctx context.Context, owner, repo string, filter AssetFilter, getDistFile func(asset *github.ReleaseAsset, release *github.RepositoryRelease) string) (asset *github.ReleaseAsset, exist bool, err error)

DownloadReleaseAsset 下载 release 资源

func GetRelease

func GetRelease(ctx context.Context, owner, repo string, filter ReleaseFilter) (*github.RepositoryRelease, error)

GetRelease 查询 github release

Types

type AssetFilter

type AssetFilter func([]*github.RepositoryRelease) (asset *github.ReleaseAsset, release *github.RepositoryRelease)

type ReleaseFilter

type ReleaseFilter func([]*github.RepositoryRelease) *github.RepositoryRelease

Jump to

Keyboard shortcuts

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