github

package
v1.1.1-0...-ad4a294 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseGithubURL

func ParseGithubURL(githubURL string) (username, projectName string, err error)

ParseGithubURL parses the githubURL and return a username and repo name

Types

type Release

type Release struct {
	User        string
	Date        string // date in format: month day, year
	Changelog   []byte
	Repository  string // full repository name from config
	ProjectName string // the project name grabbed from the repository
	Version     string // semver without the v; ex: 1.0.0
	VersionFull string // ex: <semver>_<epoch>_<commit>
	Commands    map[string][]string
}

Release contains information pertaining to a specific github release

func NewRelease

func NewRelease(config *config.Config, args []string, spinner *yacspin.Spinner) (*Release, error)

NewRelease creates a prepopulated release struct using the config file and other sources

func (*Release) CreateGithubRelease

func (r *Release) CreateGithubRelease(tokenFile, binaryPath string, spinner *yacspin.Spinner) error

CreateGithubRelease cuts a new release, tags the current commit with semver, and uploads the changelog as a description

Jump to

Keyboard shortcuts

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