跳到主要内容

Commit Event

Description of push event parameters.

Parameter Description

Parameter NameParameter TypeParameter Description
object_kindstringEvent type, here it is "push" indicating a push event
event_namestringEvent name, same as object_kind, indicating a push event
beforestringThe commit SHA value before the push
afterstringThe commit SHA value after the push
refstringGit reference path, for example "refs/heads/main" indicates the main branch
checkout_shastringThe checked-out commit SHA value
messagestringMessage content
user_idintegerUser ID that triggered the push event
user_namestringUser's display name
user_usernamestringUser's username
user_emailstringUser's email address
user_avatarstringUser avatar URL
project_idintegerUnique identifier for the project
project.idintegerProject ID
project.namestringProject name
project.descriptionstringProject description
project.web_urlstringProject's web access address
project.avatar_urlstringProject avatar URL
project.git_ssh_urlstringProject's SSH clone address
project.git_http_urlstringProject's HTTP clone address
project.namespacestringProject namespace
project.visibility_levelintegerProject visibility level (0: private, 1: public)
project.path_with_namespacestringProject path with namespace
project.default_branchstringProject's default branch
project.homepagestringProject homepage URL
project.urlstringProject Git repository URL
project.ssh_urlstringProject SSH clone URL
project.http_urlstringProject HTTP clone URL
commits[].idstringCommit SHA value
commits[].messagestringCommit message
commits[].timestampstringCommit timestamp
commits[].urlstringURL for the commit details page
commits[].author.namestringCommit author's name
commits[].author.emailstringCommit author's email
commits[].addedarrayList of files added in this commit
commits[].removedarrayList of files removed in this commit
commits[].modifiedarrayList of files modified in this commit
total_commits_countintegerTotal number of commits pushed this time
push_optionsarrayPush options array
repository.namestringRepository name
repository.urlstringRepository Git URL
repository.descriptionstringRepository description
repository.homepagestringRepository homepage URL
repository.git_http_urlstringRepository HTTP clone address
repository.git_ssh_urlstringRepository SSH clone address
repository.visibility_levelintegerRepository visibility level (0: private, 1: public)
git_branchstringTarget branch name for the push
git_commit_nostringLatest commit SHA value
manual_buildbooleanWhether it is a manual build
uuidstringUnique identifier for this push event