POST/repos/{owner}/{repo}/statuses/{sha}

Create a commit status

Users with push access in a repository can create commit statuses for a given SHA.

Note: there is a limit of 1000 statuses per sha and context within a repository. Attempts to create more than 1000 statuses will result in a validation error.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters · 4 body fields
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
shastringrequired
statestringrequired
The state of the status.
Allowed:errorfailurependingsuccess
target_urlstringoptional
The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: `http://ci.example.com/user/repo/build/sha`
descriptionstringoptional
A short description of the status.
contextstringoptional
A string label to differentiate this status from the status of other systems. This field is case-insensitive.
Default:default

1 status code
201Response
urlstringrequired
avatar_urlstringrequired
idintegerrequired
node_idstringrequired
statestringrequired
descriptionstringrequired
target_urlstringrequired
contextstringrequired
created_atstringrequired
updated_atstringrequired
creatorobjectrequired
A GitHub user.

Was this helpful?