Versions in this module Expand all Collapse all v0 v0.3.1 Mar 22, 2019 v0.3.0 Mar 21, 2019 Changes in this version + type Annotation struct + Message string v0.2.5 Feb 8, 2019 Changes in this version type Git + PushTag func(tag string) error v0.2.4 Feb 5, 2019 v0.2.3 Feb 4, 2019 v0.2.2 Jan 28, 2019 v0.2.1 Jan 18, 2019 v0.2.0 Jan 17, 2019 Changes in this version + type Asset struct + ContentType string + DownloadURL string + ID int + Label string + Name string + Size int + State string type Github + GetLatestRelease func(ctx context.Context, repo string) (*Release, error) + GetReleases func(ctx context.Context, repo string) ([]Release, error) type Release + Assets []Asset v0.1.9 Jan 17, 2019 Changes in this version type Github + EditRelease func(ctx context.Context, repo string, releaseID int, in ReleaseInput) (*Release, error) type Release + Body string + TagName string + Target string + type ReleaseInput struct + Body string + Draft bool + Name string + Prerelease bool + TagName string + Target string v0.1.8 Jan 16, 2019 v0.1.7 Jan 16, 2019 v0.1.6 Jan 16, 2019 Changes in this version type Git + Pull func() error v0.1.5 Jan 15, 2019 v0.1.4 Jan 14, 2019 v0.1.3 Jan 14, 2019 v0.1.2 Jan 14, 2019 Changes in this version + type Branch struct + Name string + type Changelog interface + Filename func() string + Generate func(ctx context.Context, gitTag string) (string, error) + func NewChangelog(workDir, githubToken string) Changelog + type Commit struct + SHA string + ShortSHA string + type Git interface + Commit func(message string, files ...string) error + GetBranch func() (*Branch, error) + GetHEAD func() (*Commit, error) + GetRepo func() (*Repo, error) + IsClean func() (bool, error) + Push func(withTags bool) error + Tag func(tag string) error + func NewGit(workDir string) Git + type Github interface + BranchProtectionForAdmin func(ctx context.Context, repo, branch string, enabled bool) error + CreateRelease func(ctx context.Context, repo, branch string, version SemVer, description string, ...) (*Release, error) + GetRelease func(ctx context.Context, repo string, version SemVer) (*Release, error) + UploadAssets func(ctx context.Context, repo string, version SemVer, assets []string) error + func NewGithub(timeout time.Duration, token string) Github + type Release struct + AssetsURL string + Draft bool + HTMLURL string + ID int + Name string + Prerelease bool + URL string + UploadURL string + type Repo struct + Name string + Owner string + func (r *Repo) Path() string + type SemVer struct + Major int64 + Minor int64 + Patch int64 + func ParseSemVer(version string) (semver SemVer, err error) + func (v SemVer) GitTag() string + func (v SemVer) PreRelease() string + func (v SemVer) ReleaseMajor() (current SemVer, next SemVer) + func (v SemVer) ReleaseMinor() (current SemVer, next SemVer) + func (v SemVer) ReleasePatch() (current SemVer, next SemVer) + func (v SemVer) Version() string + type VersionManager interface + Read func() (SemVer, error) + Update func(string) error + func NewJSONVersionManager(file string) VersionManager + func NewTextVersionManager(file string) VersionManager + func NewVersionManager(file string) (VersionManager, error)