ListCheckRuns - Query Check Run Lists

Updated at:

Queries all check runs for a specified ref with paginated results.

Applicable editions

Central edition, Region edition

Endpoints and Authorization Information

  • Get endpoints: Replace {domain} in the API request syntax.
  • Get a personal access token.
  • Obtain organizationId: Required for Central edition only. You can go to the Basic Information page in the Organization Management console to obtain the organization ID.

Product

Resource

Required Permissions

Code Management

Run a check

Read-only

Request Syntax

Central edition

GET https://{domain}/oapi/v1/codeup/organizations/{organizationId}/repositories/{repositoryId}/checkRuns

Region edition

GET https://{domain}/oapi/v1/codeup/repositories/{repositoryId}/checkRuns

Request Headers

Parameter

Type

Required

Description

Example Value

x-yunxiao-token

string

Yes

Personal access token

pt-0fh3****0fbG_35af****0484

Request Parameters

Parameter

Type

Location

Required

Description

Example Value

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

Organization ID

60d54f3daccf2bbd6659f3ad

repositoryId

string

path

Yes

Repository ID or URL-encoded full path

2813489 or 60de7a6852743a5162b5f957%2FDemoRepo

ref

string

query

Yes

Commit ID, branch name, or tag name

6da8c14b5a9102998148b7ea35f96507d5304f74

page

integer

query

No

Page number. Default value: 1. Maximum value: 150.

1

perPage

integer

query

No

Page size. Default value: 20. Valid values: 1 to 100.

20

Request Examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/codeup/organizations/60d54f3daccf2bbd6659f3ad/repositories/2813489 or 60de7a6852743a5162b5f957%2FDemoRepo/checkRuns?ref=6da8c14b5a9102998148b7ea35f96507d5304f74&page=1&perPage=20' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/codeup/repositories/2813489 or 60de7a6852743a5162b5f957%2FDemoRepo/checkRuns?ref=6da8c14b5a9102998148b7ea35f96507d5304f74&page=1&perPage=20' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response Parameters

Parameter

Type

Description

Example Value

-

array

-

object

annotations

array

Annotation information

-

object

annotationLevel

string

Annotation level. Valid values: notice (minor), warning, and failure (critical).

notice

createdAt

string

Creation time.

2024-10-05T15:30:45Z

endColumn

integer

End column. Valid only when startLine equals endLine.

2

endLine

integer

End line.

2

id

integer

Check annotation ID. Unique identifier.

1

message

string

Summary information

check run annotation message

path

string

File path.

src/test/main.java

rawDetails

string

Details. Maximum size: 64 KB.

check run annotation raw details text

startColumn

integer

Start column. Valid only when startLine equals endLine.

1

startLine

integer

Start line. Ensure the line number is valid in the file. Otherwise, the content cannot be displayed. Other fields are similar.

1

title

string

Check annotation title.

check run annotation title

updatedAt

string

Update time.

2024-10-05T15:30:45Z

checkSuite

object

Check suite information

id

integer

Unique identifier.

1

completedAt

string

Completion time of the third-party check.

2024-10-05T15:30:45Z

conclusion

string

Conclusion. Valid values: cancelled (canceled), failure (failed), neutral (considered successful), success (successful), skipped (considered successful), and timed_out (timed out).

success

createdAt

string

Creation time of the check run record.

2024-10-05T15:30:45Z

detailsUrl

string

Link to the third-party system. You define this link. The platform only provides redirection.

http://example.test

externalId

string

External system ID.

1

headSha

string

Commit ID.

6da8c14b5a9102998148b7ea35f96507d5304f74

id

integer

Unique identifier.

1

name

string

Check run name.

Test Check Run

output

object

Display information

images

array

Images to display. Maximum: 3.

-

object

alt

string

Alt text.

Test

caption

string

Image description

alt caption

imageUrl

string

Image URL. The URL must be accessible; otherwise, the image cannot be loaded.

https://example/example/w/100/h/100

summary

string

Summary. Supports Markdown format. Maximum length: 64 KB (65,535 characters).

check run summary

text

string

Details. Supports Markdown format. Maximum length: 64 KB (65,535 characters).

check run markdown content text

title

string

Title.

check run title

startedAt

string

Start time of the third-party check.

2024-10-05T15:30:45Z

status

string

Status. Valid values: queued (in queue), in_progress (running), and completed.

completed

updatedAt

string

Update time of the check run record.

2024-10-05T15:30:45Z

writer

object

Writer information

id

string

User ID.

62c795xxxb468af8

logoUrl

string

Profile picture URL.

https://example/example/w/100/h/100

name

string

User name.

codeup-name

slug

string

User logon name

codeup-username

type

string

Writer type. Valid values: User and Bot (application, not available yet).

User

Response Example

[
    {
        "annotations": [
            {
                "annotationLevel": "notice",
                "createdAt": "2024-10-05T15:30:45Z",
                "endColumn": 2,
                "endLine": 2,
                "id": 1,
                "message": "check run annotation message",
                "path": "src/test/main.java",
                "rawDetails": "check run annotation raw details text",
                "startColumn": 1,
                "startLine": 1,
                "title": "check run annotation title",
                "updatedAt": "2024-10-05T15:30:45Z"
            }
        ],
        "checkSuite": {
            "id": 1
        },
        "completedAt": "2024-10-05T15:30:45Z",
        "conclusion": "success",
        "createdAt": "2024-10-05T15:30:45Z",
        "detailsUrl": "http://example.test",
        "externalId": "1",
        "headSha": "6da8c14b5a9102998148b7ea35f96507d5304f74",
        "id": 1,
        "name": "Test Check Run",
        "output": {
            "images": [
                {
                    "alt": "Test",
                    "caption": "alt caption",
                    "imageUrl": "https://example/example/w/100/h/100"
                }
            ],
            "summary": "check run summary",
            "text": "check run markdown content text",
            "title": "check run title"
        },
        "startedAt": "2024-10-05T15:30:45Z",
        "status": "completed",
        "updatedAt": "2024-10-05T15:30:45Z",
        "writer": {
            "id": "62c795xxxb468af8",
            "logoUrl": "https://example/example/w/100/h/100",
            "name": "codeup-name",
            "slug": "codeup-username",
            "type": "User"
        }
    }
]

Response Headers

Parameter

Description

Example Value

x-next-page

Next page.

3

x-page

Current page.

2

x-per-page

Page size.

20

x-prev-page

Previous page.

1

x-request-id

Request ID.

37294673-00CA-5B8B-914F-A8B35511E90A

x-total

Total count.

50

x-total-pages

Total number of pages.

3

Error Codes

For more information about error codes, see the Error Code Center.