Skip to content
AnyMeta.
AnyMetaGitHubCommits

Get a repository commit

Returns a commit with file changes and statistics. Pagination applies to the changed files.

GET/github/repos/{owner}/{repo}/commits/{ref}No authentication required
Upstream documentation

Path parameters3

Path parameters
NameTypeDescription
owner*string

The repository owner login. The value is case-insensitive.

repo*string

The repository name without the .git suffix. The value is case-insensitive.

ref*string

A commit hash, branch, or tag. Encode slashes when using a single path segment.

Query parameters2

Query parameters
NameTypeDescription
per_pageinteger

The number of results to return per page.

Default:30

Minimum: 1Maximum: 100
pageinteger

The page number to fetch.

Default:1

Minimum: 1

Headers2

Headers
NameTypeDescription
If-None-Matchstring

An ETag for conditional requests.

If-Modified-Sincestring

An HTTP date for conditional requests.

Responses

application/json
Schemaobject
Additional properties are allowed
shastringRequired
node_idstring
html_urlstring
Format: uri
commitobjectRequired
Additional properties are allowed
authorGithubUserSummary | null
committerGithubUserSummary | null
parentsobject[]
statsobject
Additional properties are allowed
filesGithubDiffFile[]

The original GitHub response.