github

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

type Github struct {
	APIURL string
	// contains filtered or unexported fields
}

Github is the struct for mapping all functionality related to Github service

func CreateGithubService

func CreateGithubService(token, owner, repo string) *Github

CreateGithubService initializes HTTP client and sets repo owner and repo name

func (*Github) LatestRelease

func (g *Github) LatestRelease() (*release.Release, error)

LatestRelease calls https://developer.github.com/v3/repos/releases/#get-the-latest-release and returns a Release struct

func (*Github) Publish

func (g *Github) Publish(release *release.Release) error

Publish publishes a Release https://developer.github.com/v3/repos/releases/#edit-a-release

Jump to

Keyboard shortcuts

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