Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StubMetadata = Metadata{ Remote: urlStringToRemote("https://github.com/c3xdev/c3x"), Branch: Branch{ Name: "stub-branch", }, Commit: Commit{ SHA: "stub-sha", AuthorName: "stub-author", AuthorEmail: "stub@stub.com", Time: time.Time{}, Message: "stub-message", }, } MetadataFetcher = newMetadataFetcher() )
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct {
SHA string
AuthorName string
AuthorEmail string
Time time.Time
Message string
ChangedObjects []string
GitDiffTarget *string
}
Commit defines information for a given commit. This information is normally populated from the local VCS environment. Attributes can be overwritten by CI specific properties and variables.
type Metadata ¶
type Metadata struct {
Remote Remote
Branch Branch
Commit Commit
BaseCommit Commit
PullRequest *PullRequest
Pipeline *Pipeline
}
Metadata holds a snapshot of information for a given environment and VCS system. PullRequest and Pipeline properties are only populated if running in a CI system.
func (Metadata) HasChanges ¶
type Pipeline ¶
type Pipeline struct {
ID string
}
Pipeline holds information about a specific run for a CI system. This is used to aggregate C3X metadata across commands used in the same pipeline.
Click to show internal directories.
Click to hide internal directories.