Documentation
¶
Overview ¶
Package context provides gorelease context which is passed through the pipeline.
The context extends the standard library context and add a few more fields and other things, so pipes can gather data provided by previous pipes without really knowing each other.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
stdctx.Context
Action Action
Config config.Project
Env Env
Token string
TokenType TokenType
Git GitInfo
Date time.Time
Artifacts *artifact.Artifacts
ReleaseURL string
ReleaseNotes string
ReleaseNotesFile string
ReleaseNotesTmpl string
ReleaseHeaderFile string
ReleaseHeaderTmpl string
Version string
ModulePath string
PartialTarget string
Snapshot bool
FailFast bool
Partial bool
SingleTarget bool
SkipTokenCheck bool
Clean bool
PreRelease bool
Deprecated bool
Parallelism int
Semver Semver
Runtime Runtime
Skips map[string]bool
NotifiedDeprecations map[string]struct{}
PluginCtx map[string]any
}
Context carries along some data through the pipes.
type Env ¶
Env is the environment variables.
type GitInfo ¶
type GitInfo struct {
Branch string
CurrentTag string
PreviousTag string
Commit string
ShortCommit string
FullCommit string
FirstCommit string
CommitDate time.Time
URL string
Summary string
TagSubject string
TagContents string
TagBody string
Dirty bool
}
GitInfo includes tags and diffs used in some point.
type TokenType ¶
type TokenType string
TokenType is either github or gitlab.
const ( // TokenTypeGitHub defines github as type of the token. TokenTypeGitHub TokenType = "github" // TokenTypeGitLab defines gitlab as type of the token. TokenTypeGitLab TokenType = "gitlab" // TokenTypeGitea defines gitea as type of the token. TokenTypeGitea TokenType = "gitea" // TokenTypeKmup defines kmup as type of the token. TokenTypeKmup TokenType = "kmup" )
Click to show internal directories.
Click to hide internal directories.