speccontext

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BranchSpecTag  = "{branch}"
	DefaultSpecTag = "main"
)
View Source
const (
	GitFlowDevelopBranch = "develop"
)

Variables

This section is empty.

Functions

func CurrentBranchName

func CurrentBranchName() string

Types

type Context

type Context struct {
	SpecTag            string
	Origin             string
	VerificationStatus bool
}

func NewContext

func NewContext(specTag, origin string) Context

type GitContext

type GitContext struct {
	Context
	Author    string
	CommitSHA string
	Branch    string
}

func NewGitContext

func NewGitContext(specTag, origin, author, branch, commitSHA string) GitContext

type PartsContext

type PartsContext interface {
	Merged() bool
	Name() string
	Defined() bool
	Total() int
}

Jump to

Keyboard shortcuts

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