Skip to content

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.

Available in branch pipelines, including pipelines for the default branch. Not available in merge request pipelines or tag pipelines.

description

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

Otherwise, same as message.

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.

Available only in pipeline for tags.

timestamp

The timestamp of the commit in the ISO 8601 format.

title

val title: String?

The first line of the commit message.