Repositories

Get a single commit

Get details for a single commit. Set Accept header to application/vnd.gogs.sha to return only the full commit ID of a commit reference.

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

Request

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

Path parameters

ownerstring required

Repository owner

repostring required

Repository name

shastring required

Commit SHA

Response

Success

urlstring
shastring
html_urlstring

Changes

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