refs

get commit log from ref. If both objects and prefixes are empty, return all commits.

Changed on
get/repositories/{repository}/refs/{ref}/commits

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/repositories/{repository}/refs/{ref}/commits
  • Auth
    • HTTP bearer
    • or HTTP basic
    • or API key in cookie internal_auth_session

Query parameters

afterstring

return items after this value

amountinteger

how many items to return

objectsstring[]

list of paths, each element is a path of a specific object

prefixesstring[]

list of paths, each element is a path of a prefix

limitboolean

limit the number of items in return to 'amount'. Without further indication on actual number of items.

first_parentboolean

if set to true, follow only the first parent upon reaching a merge commit

sincestring date-time

Show commits more recent than a specific date-time. In case used with stop_at parameter, will stop at the first commit that meets any of the conditions.

stop_atstring

A reference to stop at. In case used with since parameter, will stop at the first commit that meets any of the conditions.

Response

commit log

Changes