repository

Get a commit's statuses

Changed on
get/repos/{owner}/{repo}/statuses/{sha}

Request

  • Base URL
    https://demo.gitea.com/api/v1
  • Auth
    • HTTP basic
    • or API key in query parameter token
    • or API key in query parameter access_token
    • or API key in header Authorization
    • or API key in query parameter sudo
    • or API key in header Sudo
    • or API key in header X-GITEA-OTP
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

shastring required

sha of the commit

Query parameters

sort'oldest' | 'recentupdate' | 'leastupdate' | 'leastindex' | 'highestindex'

type of sort

state'pending' | 'success' | 'error' | 'failure' | 'warning'

type of state

pageinteger

page number of results to return (1-based)

limitinteger

page size of results

Response

CommitStatusList

contextstring

Context is the unique context identifier for the status

created_atstring date-time
descriptionstring

Description provides a brief description of the status

idinteger

ID is the unique identifier for the commit status

status'pending' | 'success' | 'error' | 'failure' | 'warning' | 'skipped'

State represents the status state (pending, success, error, failure)

target_urlstring

TargetURL is the URL to link to for more details

updated_atstring date-time
urlstring

URL is the API URL for this status

Changes

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status