Repositories

List all commits

Returns commits from the HEAD of the default branch.

get/repos/{owner}/{repo}/commits

Request

  • Base URL
    https://gogs.example.com/api/v1
  • Auth
    API key in header Authorization

Path parameters

ownerstring required

Owner of the repository

repostring required

Name of the repository

Query parameters

pageSizeinteger

Number of commits to return

Response

Success

urlstring
shastring
html_urlstring

Changes

No recorded changes to this operation across all 3 revisions of this API.