internal

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeatureBranchPrefix = "feature/"
	HotfixBranchPrefix  = "hotfix/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IDash

type IDash interface {
	// FeatureDetail get feature detail
	FeatureDetail(featureBranchName string) ([]byte, error)

	// MilestoneOverview get milestone detail
	MilestoneOverview(milestoneName, branchFilter string) ([]byte, error)

	// ProjectDetail display project detail
	ProjectDetail() ([]byte, error)
}

IDash is used to display useful data of current development stage, and also to analyze user developing data.

func NewDash

func NewDash(ctx *types.FlowContext) IDash

type IFlow

type IFlow interface {
	// FeatureBegin open a milestone and related to a feature branch,
	// then CLI would automate fetch origin branches and pull them to local.
	// Of course, flow would save data in local storage.
	FeatureBegin(title, desc string) error
	// FeatureDebugging open a MergeRequest of feature branch and types.DevBranch branch.
	FeatureDebugging(featureBranchName string) error
	// FeatureTest open a MergeRequest of feature branch and types.TestBranch branch.
	FeatureTest(featureBranchName string) error
	// FeatureRelease open a MergeRequest of feature branch and types.MasterBranch branch.
	FeatureRelease(featureBranchName string) error

	// FeatureBeginIssue checkout a issue branch from feature branch, also open a merge request
	// which is from issue branch to feature branch.
	FeatureBeginIssue(featureBranchName string, title, desc string) error
	// FeatureFinishIssue open the WebURL of merge request which is from issue branch to feature branch.
	FeatureFinishIssue(featureBranchName, issueBranchName string) error

	// HotfixStart checkout a hotfix branch from types.MasterBranch, also open a merge request
	// which is from hotfix branch to types.MasterBranch.
	HotfixBegin(title, desc string) error
	// HotfixRelease open the WebURL of merge request which is from hotfix branch to types.MasterBranch.
	HotfixFinish(hotfixBranchName string) error

	// SyncMilestone synchronize remote repository milestone and
	// related issues / merge requests to local.
	SyncMilestone(milestoneID int, interact bool) error
}

IFlow to control branches, MRs, milestones and issues.

func NewFlow

func NewFlow(ctx *types.FlowContext) IFlow

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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