Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultGenerateSummary(c *typgo.Context) string
- func DefaultGenerateTag(c *typgo.Context, alpha bool) string
- func GitCurrentTag(c *typgo.Context) string
- func GitFetch(c *typgo.Context) error
- func HasPrefix(msg string, prefixes []string) bool
- type Context
- type CrossCompiler
- type Git
- type Github
- type Log
- type NewPublisher
- type NewReleaser
- type Publisher
- type Publishers
- type ReleaseProject
- type Releaser
- type Releasers
- type Target
Constants ¶
View Source
const ( // AlphaFlag alpha flag AlphaFlag = "alpha" // TagNameFlag tag name flag TagNameFlag = "tag-name" // SkipPublishFlag skip publish flag SkipPublishFlag = "skip-publish" // ReleaseFolderFlag release folder flag ReleaseFolderFlag = "release-folder" )
Variables ¶
View Source
var DefaultPrefixes = []string{"merge", "bump", "revision", "generate", "wip"}
DefaultPrefixes ...
Functions ¶
func DefaultGenerateSummary ¶
DefaultGenerateSummary default generate summary
func DefaultGenerateTag ¶
DefaultGenerateTag create release tag
func GitCurrentTag ¶
GitCurrentTag return git current tag
Types ¶
type Context ¶
type Context struct { *typgo.Context Alpha bool TagName string ReleaseFolder string Summary string }
Context contain data for release
type CrossCompiler ¶
CrossCompiler compile project to various platform
func (*CrossCompiler) Release ¶
func (o *CrossCompiler) Release(c *Context) error
Release for compile
type NewPublisher ¶
PublishFn release function
func (NewPublisher) Publish ¶
func (n NewPublisher) Publish(c *Context) error
type NewReleaser ¶
ReleaseFn release function
func (NewReleaser) Release ¶
func (r NewReleaser) Release(c *Context) error
type ReleaseProject ¶
type ReleaseProject struct { Before typgo.Action GenerateTagFn func(c *typgo.Context, alpha bool) string GenerateSummaryFn func(c *typgo.Context) string Releaser Releaser Publisher Publisher }
ReleaseProject release command
Click to show internal directories.
Click to hide internal directories.