repository

Create a commit status

Changed on
post/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

Request body

contextstring

Context is the unique context identifier for the status

descriptionstring

Description provides a brief description of the status

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

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

target_urlstring

TargetURL is the URL to link to for more details

Response

CommitStatus

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