Get a commit's statuses
GET
/v3/projects/{id}/repository/commits/{sha}/statusesGet a commit's statuses
请求参数
Path 参数
id
string
必需
The ID of a project
sha
string
必需
The commit hash
Query 参数
ref
string
The ref
stage
string
The stage
name
string
The name
all
string
可选
Show all statuses, default: false
page
integer <int32>
可选
Current page number
per_page
integer <int32>
可选
Number of items per page
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Get a commit's statuses
数据结构
Post status to a commit
id
string
可选
sha
string
可选
ref
string
可选
status
string
可选
name
string
可选
target_url
string
可选
description
string
可选
created_at
string
可选
started_at
string
可选
finished_at
string
可选
allow_failure
string
可选
author
object (UserBasic)
可选
Get a single user
name
string
可选
username
string
可选
id
string
可选
state
string
可选
avatar_url
string
可选
web_url
string
可选
示例
{
"id": "string",
"sha": "string",
"ref": "string",
"status": "string",
"name": "string",
"target_url": "string",
"description": "string",
"created_at": "string",
"started_at": "string",
"finished_at": "string",
"allow_failure": "string",
"author": {
"name": "string",
"username": "string",
"id": "string",
"state": "string",
"avatar_url": "string",
"web_url": "string"
}
}
最后修改时间: 1 个月前