github

package
v0.0.112 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 8 Imported by: 0

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