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
const val author: String

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

Link copied to clipboard
const val branch: String

The commit branch name.

Link copied to clipboard
const val description: String

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

Link copied to clipboard
const val message: String

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
const val sha: String

The SHA of the current commit.

Link copied to clipboard
const val shortSha: String

The first eight characters of the sha.

Link copied to clipboard
const val tag: String

The commit tag name.

Link copied to clipboard
const val timestamp: String

The timestamp of the commit in the ISO 8601 format.

Link copied to clipboard
const val title: String

The first line of the commit message.