tasks

package
v0.15.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CalculateCommitsDiffMeta = core.SubTaskMeta{
	Name:             "calculateCommitsDiff",
	EntryPoint:       CalculateCommitsDiff,
	EnabledByDefault: true,
	Description:      "Calculate diff commits between refs",
	DomainTypes:      []string{core.DOMAIN_TYPE_CODE},
}
View Source
var CalculateIssuesDiffMeta = core.SubTaskMeta{
	Name:             "calculateIssuesDiff",
	EntryPoint:       CalculateIssuesDiff,
	EnabledByDefault: true,
	Description:      "Calculate diff issues between refs",
	DomainTypes:      []string{core.DOMAIN_TYPE_CODE},
}
View Source
var CalculatePrCherryPickMeta = core.SubTaskMeta{
	Name:             "calculatePrCherryPick",
	EntryPoint:       CalculatePrCherryPick,
	EnabledByDefault: true,
	Description:      "Calculate pr cherry pick",
	DomainTypes:      []string{core.DOMAIN_TYPE_CODE},
}
View Source
var CalculateProjectDeploymentCommitsDiffMeta = core.SubTaskMeta{
	Name:             "calculateProjectDeploymentCommitsDiff",
	EntryPoint:       CalculateProjectDeploymentCommitsDiff,
	EnabledByDefault: true,
	Description:      "Calculate diff commits between project deployments",
	DomainTypes:      []string{core.DOMAIN_TYPE_CODE},
}

Functions

func CalculateCommitsDiff

func CalculateCommitsDiff(taskCtx core.SubTaskContext) errors.Error

func CalculateIssuesDiff

func CalculateIssuesDiff(taskCtx core.SubTaskContext) errors.Error

func CalculatePrCherryPick

func CalculatePrCherryPick(taskCtx core.SubTaskContext) errors.Error

func CalculateProjectDeploymentCommitsDiff added in v0.15.0

func CalculateProjectDeploymentCommitsDiff(taskCtx core.SubTaskContext) errors.Error

func CommitDiffConvertor added in v0.15.0

func CommitDiffConvertor(pipelineCommitShaList []string, existFinishedCommitDiff []code.FinishedCommitsDiff) (commitPairs []code.CommitsDiff, finishedCommitDiffs []code.FinishedCommitsDiff)

Types

type RefCommitPair added in v0.12.0

type RefCommitPair [4]string

type RefCommitPairs added in v0.12.0

type RefCommitPairs []RefCommitPair

func CalculateCommitPairs added in v0.12.0

func CalculateCommitPairs(db dal.Dal, repoId string, pairs []RefPair, rs Refs) (RefCommitPairs, errors.Error)

CalculateCommitPairs Calculate the commits pairs both from Options.Pairs and TagPattern

type RefPair

type RefPair struct {
	NewRef string
	OldRef string
}

type RefPairList added in v0.12.0

type RefPairList [2]string

type RefPairLists added in v0.12.0

type RefPairLists []RefPairList

func CaculatePairList added in v0.12.0

func CaculatePairList(taskCtx core.SubTaskContext) (RefPairLists, errors.Error)

CaculatePairList Calculate the pair list both from Options.Pairs and TagPattern

type RefdiffOptions

type RefdiffOptions struct {
	RepoId string
	Tasks  []string `json:"tasks,omitempty"`
	Pairs  []RefPair

	TagsPattern string // The Pattern to match from all tags
	TagsLimit   int    // How many tags be matched should be used.
	TagsOrder   string // The Rule to Order the tag list

	AllPairs    RefCommitPairs // Pairs and TagsPattern Pairs
	ProjectName string
}

type RefdiffTaskData

type RefdiffTaskData struct {
	Options *RefdiffOptions
	Since   *time.Time
}

type Refs added in v0.12.0

type Refs []code.Ref

func CalculateTagPattern added in v0.14.0

func CalculateTagPattern(db dal.Dal, tagsPattern string, tagsLimit int, tagsOrder string) (Refs, errors.Error)

CalculateTagPattern Calculate the TagPattern order by tagsOrder and return the Refs

func (Refs) Len added in v0.12.0

func (rs Refs) Len() int

type RefsAlphabetically added in v0.12.0

type RefsAlphabetically Refs

func (RefsAlphabetically) Len added in v0.12.0

func (rs RefsAlphabetically) Len() int

func (RefsAlphabetically) Less added in v0.12.0

func (rs RefsAlphabetically) Less(i, j int) bool

func (RefsAlphabetically) Swap added in v0.12.0

func (rs RefsAlphabetically) Swap(i, j int)

type RefsReverseAlphabetically added in v0.12.0

type RefsReverseAlphabetically Refs

func (RefsReverseAlphabetically) Len added in v0.12.0

func (rs RefsReverseAlphabetically) Len() int

func (RefsReverseAlphabetically) Less added in v0.12.0

func (rs RefsReverseAlphabetically) Less(i, j int) bool

func (RefsReverseAlphabetically) Swap added in v0.12.0

func (rs RefsReverseAlphabetically) Swap(i, j int)

type RefsReverseSemver added in v0.12.0

type RefsReverseSemver Refs

func (RefsReverseSemver) Len added in v0.12.0

func (rs RefsReverseSemver) Len() int

func (RefsReverseSemver) Less added in v0.12.0

func (rs RefsReverseSemver) Less(i, j int) bool

func (RefsReverseSemver) Swap added in v0.12.0

func (rs RefsReverseSemver) Swap(i, j int)

type RefsSemver added in v0.12.0

type RefsSemver Refs

func (RefsSemver) Len added in v0.12.0

func (rs RefsSemver) Len() int

func (RefsSemver) Less added in v0.12.0

func (rs RefsSemver) Less(i, j int) bool

func (RefsSemver) Swap added in v0.12.0

func (rs RefsSemver) Swap(i, j int)

Jump to

Keyboard shortcuts

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