Skip to main content

status_commits

Overview

Namestatus_commits
TypeResource
Idgithub.repos.status_commits

Fields

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

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.