Commit

object Commit(source)

Variables related to commits.

Types

Link copied to clipboard
object Ref

Variables that relate to the reference this pipeline is building (e.g. a tag or a branch).

Properties

Link copied to clipboard

Author of the commit, in the Name <email> format.

Link copied to clipboard

The commit branch name.

Link copied to clipboard

The commit message without its first line, if it is shorter than 100 characters.

Link copied to clipboard

The full commit message.

Link copied to clipboard

Previous latest commit present on a branch. Is always 0000000000000000000000000000000000000000 in merge request pipelines.

Link copied to clipboard
val sha: String?

The SHA of the current commit.

Link copied to clipboard

The first eight characters of the sha.

Link copied to clipboard
val tag: String?

The commit tag name.

Link copied to clipboard

The timestamp of the commit in the ISO 8601 format.

Link copied to clipboard

The first line of the commit message.