github

package
v0.0.147 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 8 Imported by: 3 modules, 2 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

Index

Constants

This section is empty.

Variables

View Source
var ErrReleaseNotFound = errors.New("release not found")

Functions

This section is empty.

Types

type CreateReleaseInput added in v0.0.109

type CreateReleaseInput struct {
	TagName    string
	Name       string
	Body       string
	Draft      bool
	Prerelease bool
}

type Release

type Release struct {
	ID  int64  `json:"id"`
	Tag string `json:"tag_name"`
}

type ReleaseClient

type ReleaseClient struct {
	Token string
	Owner string
	Repo  string
}

func NewReleaseClient

func NewReleaseClient(token, owner, repo string) *ReleaseClient

func (*ReleaseClient) CreateRelease added in v0.0.109

func (c *ReleaseClient) CreateRelease(input CreateReleaseInput) (*Release, error)

func (*ReleaseClient) GetOrCreateRelease added in v0.0.109

func (c *ReleaseClient) GetOrCreateRelease(tag string) (*Release, error)

func (*ReleaseClient) GetReleaseByTag

func (c *ReleaseClient) GetReleaseByTag(tag string) (*Release, error)

func (*ReleaseClient) UploadReleaseAsset

func (c *ReleaseClient) UploadReleaseAsset(releaseID int64, filePath string) error

Jump to

Keyboard shortcuts

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