Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ciValueCommit

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

val author: String?

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

branch

val branch: String?

The commit branch name.

description

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

message

val message: String?

The full commit message.

previousCommitSha

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

sha

val sha: String?

The SHA of the current commit.

shortSha

The first eight characters of the sha.

tag

val tag: String?

The commit tag name.

timestamp

The timestamp of the commit in the ISO 8601 format.

title

val title: String?

The first line of the commit message.