Skip to main content

status_commits

Overview

Namestatus_commits
TypeResource
Idgithub.repos.status_commits

Fields

NameDatatypeDescription
idinteger
descriptionstring
avatar_urlstring
contextstring
created_atstring
creatorobjectA GitHub user.
node_idstring
statestring
target_urlstring
updated_atstring
urlstring

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.