release

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCommitRange = errors.New("invalid commit range")

Functions

func GetCommitBody

func GetCommitBody(c string) (string, error)

func GetCommitTitle

func GetCommitTitle(c string) (string, error)

func GetCommitsBetween

func GetCommitsBetween(f, t string) ([]string, error)

func GetCurrentBranch

func GetCurrentBranch() (string, error)

func GetLastCommit

func GetLastCommit() (string, error)

func GetLatestVersion

func GetLatestVersion(ctx context.Context, ghClient *github.Client, owner, repo string) (*semver.Version, error)

func RunGit

func RunGit(args ...string) ([]string, error)

func RunGitOneLine

func RunGitOneLine(args ...string) (string, error)

func SemanticRelease

func SemanticRelease(config Config) error

Types

type Config

type Config struct {
	FromCommit   string
	ToCommit     string
	GHToken      string
	Owner        string
	Repo         string
	Branch       string
	IsPR         bool
	DebugEnabled bool
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func (*Logger) Debug

func (l *Logger) Debug(msg string, v ...interface{})

func (*Logger) Info

func (l *Logger) Info(msg string, v ...interface{})

Jump to

Keyboard shortcuts

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