Skip to main content

statuses

Overview

Namestatuses
TypeResource
Idgithub.repos.statuses

Fields

NameDatatypeDescription
idinteger
descriptionstring
target_urlstring
updated_atstring
creatorobjectSimple User
node_idstring
urlstring
created_atstring
statestring
avatar_urlstring
contextstring

Methods

NameAccessible byRequired ParamsDescription
list_commit_statuses_for_refSELECTowner, ref, repoUsers with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one.

This resource is also available via a legacy route: GET /repos/:owner/:repo/statuses/:ref.
create_commit_statusINSERTowner, repo, sha, data__stateUsers 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.