Commit Event
推送事件参数说明。
参数说明
| 参数名称 | 参数类型 | 参数说明 |
|---|---|---|
| object_kind | string | 事件类型,此处为 "push" 表示推送事件 |
| event_name | string | 事件名称,与 object_kind 相同,表示推送事件 |
| before | string | 推送前的提交 SHA 值 |
| after | string | 推送后的提交 SHA 值 |
| ref | string | Git 引用路径,例如 "refs/heads/main" 表示主分支 |
| checkout_sha | string | 检出的提交 SHA 值 |
| message | string | 消息内容 |
| user_id | integer | 触发推送事件的用户 ID |
| user_name | string | 用户的显示名称 |
| user_username | string | 用户的用户名 |
| user_email | string | 用户的邮箱地址 |
| user_avatar | string | 用户头像的 URL 地址 |
| project_id | integer | 项目的唯一标识符 |
| project.id | integer | 项目 ID |
| project.name | string | 项目名称 |
| project.description | string | 项目描述 |
| project.web_url | string | 项目的 Web 访问地址 |
| project.avatar_url | string | 项目头像的 URL 地址 |
| project.git_ssh_url | string | 项目的 SSH 克隆地址 |
| project.git_http_url | string | 项目的 HTTP 克隆地址 |
| project.namespace | string | 项目的命名空 间 |
| project.visibility_level | integer | 项目可见性级别(0: 私有, 1:公开) |
| project.path_with_namespace | string | 带命名空间的项目路径 |
| project.default_branch | string | 项目的默认分支 |
| project.homepage | string | 项目主页 URL |
| project.url | string | 项目 Git 仓库 URL |
| project.ssh_url | string | 项目 SSH 克隆 URL |
| project.http_url | string | 项目 HTTP 克隆 URL |
| commits[].id | string | 提交的 SHA 值 |
| commits[].message | string | 提交信息 |
| commits[].timestamp | string | 提交时间戳 |
| commits[].url | string | 提交详情页面的 URL |
| commits[].author.name | string | 提交作者的名称 |
| commits[].author.email | string | 提交作者的邮箱 |
| commits[].added | array | 本次提交新增的文件列表 |
| commits[].removed | array | 本次提交删除的文件列表 |
| commits[].modified | array | 本次提交修改的文件列表 |
| total_commits_count | integer | 本次推送的提交总数 |
| push_options | array | 推送选项数组 |
| repository.name | string | 仓库名称 |
| repository.url | string | 仓库 Git URL |
| repository.description | string | 仓库描述 |
| repository.homepage | string | 仓库主页 URL |
| repository.git_http_url | string | 仓库 HTTP 克隆地址 |
| repository.git_ssh_url | string | 仓库 SSH 克隆地址 |
| repository.visibility_level | integer | 仓 库可见性级别(0: 私有, 1: 公开) |
| git_branch | string | 推送的目标分支名称 |
| git_commit_no | string | 最新提交的 SHA 值 |
| manual_build | boolean | 是否为手动构建 |
| uuid | string | 本次推送事件的唯一标识符 |