Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ciVariableCommit

Commit

object Commit

Variables related to commits.

Types

Ref

object Ref

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

Properties

author

const val author: String

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

branch

const val branch: String

The commit branch name.

description

const val description: String

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

message

const val message: String

The full commit message.

previousCommitSha

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

sha

const val sha: String

The SHA of the current commit.

shortSha

const val shortSha: String

The first eight characters of the sha.

tag

const val tag: String

The commit tag name.

timestamp

const val timestamp: String

The timestamp of the commit in the ISO 8601 format.

title

const val title: String

The first line of the commit message.