Documentation ¶
Index ¶
- Constants
- type AuthoredBranch
- func AuthoredBranchFromBranchName(branchName string) (AuthoredBranch, error)
- func FeatureFromBranch(branchName string) (b AuthoredBranch, err error)
- func FixFromBranch(branchName string) (b AuthoredBranch, err error)
- func NewAuthoredBranch(branchType, author, featureName string) (AuthoredBranch, error)
- func NewFeature(author, name string) (b AuthoredBranch, err error)
- func NewFix(author, name string) (b AuthoredBranch, err error)
- type Branch
- func BranchFromBranchName(name string) (b Branch, err error)
- func HotfixFromBranch(branchName string) (b Branch, err error)
- func NewBranch(name string) Branch
- func NewBranchLoggingService(b Branch) Branch
- func NewHotfix(version string) (b Branch, err error)
- func NewRelease(version string) (b Branch, err error)
- func ReleaseFromBranch(branchName string) (b Branch, err error)
Constants ¶
View Source
const ( BRANCH_NAME_PREFIX = "refs/heads/" FEATURE_BRANCH_PATTERN = `feature/[^/]+/.*` FIX_BRANCH_PATTERN = `fix/[^/]+/.*` HOTFIX_BRANCH_PATTERN = `hotfix/v.*` RELEASE_BRANCH_PATTERN = `release/v.*` )
View Source
const ( AUTHORED_BRANCH_TYPE_FEATURE = "feature" AUTHORED_BRANCH_TYPE_FIX = "fix" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthoredBranch ¶
type AuthoredBranch interface { Branch }
AuthoredBranch definition
func AuthoredBranchFromBranchName ¶
func AuthoredBranchFromBranchName(branchName string) (AuthoredBranch, error)
AuthoredBranchFromBranchName extracts a feature definition from branch name
func FeatureFromBranch ¶
func FeatureFromBranch(branchName string) (b AuthoredBranch, err error)
FeatureFromBranch extracts a feature definition from branch name
func FixFromBranch ¶
func FixFromBranch(branchName string) (b AuthoredBranch, err error)
FixFromBranch extracts a fix definition from branch name
func NewAuthoredBranch ¶
func NewAuthoredBranch(branchType, author, featureName string) (AuthoredBranch, error)
NewAuthoredBranch creates a new branch definition
func NewFeature ¶
func NewFeature(author, name string) (b AuthoredBranch, err error)
NewFeature creates a new feature definition
func NewFix ¶
func NewFix(author, name string) (b AuthoredBranch, err error)
NewFix creates a new fix definition
type Branch ¶
type Branch interface { CreationIsAllowedFrom(sourceBranch Branch) bool CanBeClosed() bool CanBePublished() bool CloseBranches(availableBranches []Branch) []Branch PublishBranch() Branch BranchName() string ShortBranchName() string }
Branch interface
func BranchFromBranchName ¶
func HotfixFromBranch ¶
HotfixFromBranch extracts a fix definition from branch name
func NewBranchLoggingService ¶
func NewRelease ¶
NewRelease creates a new release definition
func ReleaseFromBranch ¶
ReleaseFromBranch extracts a release definition from branch name
Directories ¶
Path | Synopsis |
---|---|
Package mock_glow is a generated GoMock package.
|
Package mock_glow is a generated GoMock package. |
__mock__
Package mock_git is a generated GoMock package.
|
Package mock_git is a generated GoMock package. |
__mock__
Package mock_gitprovider is a generated GoMock package.
|
Package mock_gitprovider is a generated GoMock package. |
__mock__
Package mock_semver is a generated GoMock package.
|
Package mock_semver is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.