ListCommitStatuses

Updated at:

Queries a list of commit statuses with pagination support.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET /api/v4/projects/repository/commit_statuses/list_commit_statuses HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The organization ID. It is a string that can be obtained from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId].

5ebbc0228123212b59xxxxx

accessToken

string

No

The personal access token. This parameter is not required if you use an Alibaba Cloud AccessKey ID and AccessKey secret or Security Token Service (STS) temporary authorization.

f0b1e61db5961df5975a93f9129d2513

repositoryIdentity

string

Yes

The ID or full path of the code repository.

2835387 or codeup/codeup-demo

sha

string

Yes

The commit ID, which is the commit SHA. Only commit IDs are supported.

61cc69557962d29f737a91730b3e86f497f083a3

page

integer

No

The page number. Default value: 1. Pages start from 1.

1

pageSize

integer

No

The number of entries per page. Default value: 20. Valid values: 1 to 100.

20

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

The request ID.

ASSDS-ASSASX-XSAXSA-XSAXSAXS

success

boolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.

  • false: The request fails.

true

errorCode

string

The error code.

SYSTEM_UNKNOWN_ERROR

errorMessage

string

The error message.

""

total

integer

The total number of records.

28

result

array<object>

The list of returned results.

array<object>

The returned result.

id

integer

The ID. This ID has no actual business meaning.

19285

sha

string

The commit ID, which is the commit SHA. Only commit IDs are supported.

61cc69557962d29f737a91730b3e86f497f083a3

context

string

The string identifier used to distinguish writes from different systems. It is displayed as a title on the corresponding page UI. Default value: default. The length cannot exceed 50 characters, and it is case-insensitive.

test-commit-status-context

state

string

The write status. Valid values:

  • error: An exception occurred.

  • failure: Failed.

  • pending: Running.

  • success: Successful.

success

targetUrl

string

The redirect URL written by the user. The code platform only provides the redirect UI. Generally, this can be set to a URL of a third-party system.

xxx

description

string

The brief description of the commit status. The description cannot exceed 3,000 characters.

Specific content of the description

creator

object

The brief information about the user who wrote the commit status.

aliyunPk

string

The Alibaba Cloud account ID. If the type is Bot, this value is empty.

235671547828975455

login

string

The username if the type is User, or the application name if the type is Bot.

codeup

avatarUrl

string

The URL of the avatar.

https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c3f67f1bea827c4/w/100/h/100

type

string

The type of the writer. Valid values:

  • User: Regular user.

  • Bot: Application.

User

Examples

Success response

JSON format

{
  "requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
  "success": true,
  "errorCode": "SYSTEM_UNKNOWN_ERROR",
  "errorMessage": "\"\"",
  "total": 28,
  "result": [
    {
      "id": 19285,
      "sha": "61cc69557962d29f737a91730b3e86f497f083a3",
      "context": "test-commit-status-context",
      "state": "success",
      "targetUrl": "xxx",
      "description": "描述信息的具体内容\n",
      "creator": {
        "aliyunPk": "235671547828975455",
        "login": "codeup",
        "avatarUrl": "https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c3f67f1bea827c4/w/100/h/100",
        "type": "User"
      }
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.